summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/opera/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'abs/extra-testing/opera/PKGBUILD')
-rw-r--r--abs/extra-testing/opera/PKGBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/abs/extra-testing/opera/PKGBUILD b/abs/extra-testing/opera/PKGBUILD
new file mode 100644
index 0000000..f7f5134
--- /dev/null
+++ b/abs/extra-testing/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=1
+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
+}