summaryrefslogtreecommitdiffstats
path: root/extra/opera/Pkgfile
diff options
context:
space:
mode:
authortnut <thierryn1 at hispeed dot ch>2011-03-14 18:13:48 +0100
committertnut <thierryn1 at hispeed dot ch>2011-03-14 18:13:48 +0100
commite322f51cd23d60b14a1a0e52e43beeab62cd423d (patch)
tree754d40c533d7ff56b88d60721f9a6c360f744e47 /extra/opera/Pkgfile
parent16a61fe0469e293ca213127c4d9d89b9c2d5112e (diff)
downloadnutyx-extra-e322f51cd23d60b14a1a0e52e43beeab62cd423d.tar.gz
nutyx-extra-e322f51cd23d60b14a1a0e52e43beeab62cd423d.tar.bz2
nutyx-extra-e322f51cd23d60b14a1a0e52e43beeab62cd423d.tar.xz
nutyx-extra-e322f51cd23d60b14a1a0e52e43beeab62cd423d.zip
ajout opera, maj 11.01-1
Diffstat (limited to 'extra/opera/Pkgfile')
-rw-r--r--extra/opera/Pkgfile35
1 files changed, 35 insertions, 0 deletions
diff --git a/extra/opera/Pkgfile b/extra/opera/Pkgfile
new file mode 100644
index 000000000..dd2453e21
--- /dev/null
+++ b/extra/opera/Pkgfile
@@ -0,0 +1,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
+}