blob: dd2453e2141a4fc0e5547dcfcf5516e4d3ebd878 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# Description: Navigateur web basé sur la librairie qt
# URL: http://www.opera.com
# Maintainer: NuTyX core team
# Packager: geantbrun at gmail dot com
# Depends on: desktop-file-utils
# Run on: desktop-file-utils,qt
name=opera
version=11.01
release=1
_rep=1101
_release=1190
if [ "`uname -m`" == "i686" ]; then
_ARCH=i386
else
_ARCH=x86_64
fi
source=( ftp://ftp.opera.com/pub/opera/linux/$_rep/opera-$version-$_release.${_ARCH}.linux.tar.bz2 \
opera.desktop opera.png )
build() {
cd $name-*
sed -i "s|finalize_xdg()|xdg()|" install
sed -i "/finalize_xdg/d" install
sed -i "s|PREFIX=/usr/local|PREFIX=$PKG/usr|" install
./install --unattended --system --force
sed -i -e "s|$PKG||g" $PKG/usr/bin/opera
rm -r $PKG/usr/share/doc
mkdir -p $PKG/usr/share/{applications,licences/opera,icons/hicolor/48x48/apps}
install -D -m 644 ../opera.desktop $PKG/usr/share/applications/
install -D -m 644 LICENSE $PKG/usr/share/licences/opera/licence.txt
cp ../opera.png $PKG/usr/share/icons/hicolor/48x48/apps/opera.png
mv $PKG/usr/share/licen{c,s}es
}
|