summaryrefslogtreecommitdiffstats
path: root/abs/extra
diff options
context:
space:
mode:
Diffstat (limited to 'abs/extra')
-rw-r--r--abs/extra/opera/PKGBUILD65
-rw-r--r--abs/extra/opera/opera.install29
2 files changed, 60 insertions, 34 deletions
diff --git a/abs/extra/opera/PKGBUILD b/abs/extra/opera/PKGBUILD
index b7342f8..37791e3 100644
--- a/abs/extra/opera/PKGBUILD
+++ b/abs/extra/opera/PKGBUILD
@@ -1,40 +1,37 @@
-# $Id: PKGBUILD 28942 2009-03-03 08:21:13Z daniel $
-# Maintainer: Daniel Isenmann <daniel@archlinux.org>
-# Contributor: dorphell <dorphell@archlinux.org>
-
+# Maintainer: Mateusz Herych <heniekk@gmail.com>
+# Contributor: ruario <ruario AT opera DOT com>
+# Contributor: BlackEagle < ike DOT devolder AT gmail DOT com >
+# Contributor: Daniel Isenmann <daniel AT archlinux DOT org>
+# Contributor: dorphell <dorphell AT archlinux DOT org>
+# Contributor: Sigitas Mazaliauskas <sigis AT gmail DOT com>
pkgname=opera
-pkgver=9.64
-pkgrel=2
-pkgdesc="The Opera web browser"
-url="http://www.opera.com/"
-depends=('qt')
+pkgver=11.50
+_buildver=1074
+pkgrel=1
+pkgdesc="A fast and secure web browser and Internet suite."
+url="http://www.opera.com/browser/"
+depends=('gcc-libs' 'libxt' 'freetype2' 'libxext')
+optdepends=('gtk2: GTK integration'
+ 'kdebase-runtime: KDE4 integration'
+ 'gstreamer0.10-base-plugins: HTML5 open codecs support'
+ 'gstreamer0.10-good: HTML5 open codecs support'
+ 'gstreamer0.10-ffmpeg: HTML5 not so open codecs support'
+ 'gstreamer0.10-bad-plugins: HTML5 not so open codecs support')
+install=${pkgname}.install
+options=(!strip !zipman)
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')
+_arch=i386
+[ "$CARCH" = "x86_64" ] && _arch=x86_64
+source=(http://ftp.opera.com/pub/opera/linux/${pkgver/./}/opera-${pkgver}-${_buildver}.${_arch}.linux.tar.xz)
+sha256sums=('d936881411db5cca320e3eb4b921d0f99a32c5bb100278183533be0e8fda8f86')
+[ "$CARCH" = "x86_64" ] && sha256sums=('17681e7f6e01fba6c29c3ca1474e7df779a0b5db1834a334557fafbafa5cc753')
-[ "$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
+ opera-${pkgver}-${_buildver}.${_arch}.linux/install --prefix /usr --repackage ${pkgdir}/usr
+}
+
+package() {
+ install -D -m 644 ${pkgdir}/usr/share/${pkgname}/defaults/license.txt ${pkgdir}/usr/share/licenses/${pkgname}/license.txt
}
+
diff --git a/abs/extra/opera/opera.install b/abs/extra/opera/opera.install
new file mode 100644
index 0000000..385bcb4
--- /dev/null
+++ b/abs/extra/opera/opera.install
@@ -0,0 +1,29 @@
+available()
+{
+ which "$1" >/dev/null 2>&1
+}
+
+post_install() {
+if available update-mime-database
+then
+ update-mime-database /usr/share/mime >/dev/null
+fi
+
+if available update-desktop-database
+then
+ update-desktop-database -q /usr/share/applications
+fi
+
+if available gtk-update-icon-cache
+then
+ gtk-update-icon-cache -q /usr/share/icons/hicolor
+fi
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}