summaryrefslogtreecommitdiffstats
path: root/abs/extra/opera/PKGBUILD
diff options
context:
space:
mode:
authorCecil Hugh Watson <knoppmyth@gmail.com>2009-09-26 01:57:08 (GMT)
committerCecil Hugh Watson <knoppmyth@gmail.com>2009-09-26 01:57:08 (GMT)
commit7b29169fff9e7c624890c5edffe85def8a293136 (patch)
tree47753889faa3a2063b66d1c7e7681e703eb1b39a /abs/extra/opera/PKGBUILD
parentc491dea779dac29afff3578bf8245943817c2339 (diff)
downloadlinhes_pkgbuild-7b29169fff9e7c624890c5edffe85def8a293136.zip
linhes_pkgbuild-7b29169fff9e7c624890c5edffe85def8a293136.tar.gz
linhes_pkgbuild-7b29169fff9e7c624890c5edffe85def8a293136.tar.bz2
LinHES 6.01.00
Diffstat (limited to 'abs/extra/opera/PKGBUILD')
-rw-r--r--abs/extra/opera/PKGBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/abs/extra/opera/PKGBUILD b/abs/extra/opera/PKGBUILD
new file mode 100644
index 0000000..b7342f8
--- /dev/null
+++ b/abs/extra/opera/PKGBUILD
@@ -0,0 +1,40 @@
+# $Id: PKGBUILD 28942 2009-03-03 08:21:13Z daniel $
+# Maintainer: Daniel Isenmann <daniel@archlinux.org>
+# Contributor: dorphell <dorphell@archlinux.org>
+
+pkgname=opera
+pkgver=9.64
+pkgrel=2
+pkgdesc="The Opera web browser"
+url="http://www.opera.com/"
+depends=('qt')
+license=('custom:opera')
+arch=('i686' 'x86_64')
+source=(http://ftp.opera.com/pub/opera/linux/${pkgver/./}/final/en/i386/opera-${pkgver}.gcc4-qt4.i386.tar.bz2 opera.desktop opera_logo48.png opera-qt4-theme.patch)
+md5sums=('bbfb1f77cc3091b3134b710b4719ba3e'
+ 'f99bef1a9200abe5a5cda78665cddc84'
+ 'a270c65b8d4f8e2e76439f417ea44265'
+ 'e977071ea5f09b36820367bf6e4dc3e1')
+
+[ "$CARCH" = "x86_64" ] && depends=('qt3')
+[ "$CARCH" = "x86_64" ] && source=(http://ftp.opera.com/pub/opera/linux/${pkgver/./}/final/en/x86_64/opera-${pkgver}.gcc4-shared-qt3.x86_64.tar.bz2 opera.desktop opera_logo48.png)
+[ "$CARCH" = "x86_64" ] && md5sums=('b4ca665855639a72fc0c3ae47b751fae'
+ 'f99bef1a9200abe5a5cda78665cddc84'
+ 'a270c65b8d4f8e2e76439f417ea44265')
+build() {
+if [ "$CARCH" = "x86_64" ]; then
+ cd ${startdir}/src/opera-${pkgver}-2480.gcc4-shared-qt3.x86_64
+ sed 's|/usr/X11R6/lib/mozilla/plugins=1|/usr/lib/mozilla/plugins=1|' -i usr/share/opera/ini/pluginpath.ini || return 1
+ else cd ${startdir}/src/opera-${pkgver}-2480.gcc4-qt4.i386
+ sed 's|/usr/X11R6/lib/mozilla/plugins=1|/usr/lib/mozilla/plugins=1|' -i usr/share/opera/ini/pluginpath.ini || return 1
+fi
+ ./install.sh DESTDIR=${startdir}/pkg
+ if [ "$CARCH" = "i686" ]; then
+ pushd ${startdir}/pkg/usr/bin
+ patch -Np0 -i ${startdir}/src/opera-qt4-theme.patch || return 1
+ popd
+ fi
+ install -D -m 644 ${startdir}/src/opera.desktop ${startdir}/pkg/usr/share/applications/opera.desktop
+ install -D -m 644 LICENSE ${startdir}/pkg/usr/share/licenses/opera/license.txt
+ install -D -m 644 ${startdir}/src/opera_logo48.png ${startdir}/pkg/usr/share/opera/images/opera_48x48.png
+}