diff options
author | Christian Hesse | 2015-06-28 21:30:28 +0200 |
---|---|---|
committer | Christian Hesse | 2015-06-28 21:30:28 +0200 |
commit | 0d78ccaefcdaebc4e776e2ff3230d086e2cbcdde (patch) | |
tree | 2de848a48fd9b7c53af83209da83875a1660bea0 | |
download | aur-0d78ccaefcdaebc4e776e2ff3230d086e2cbcdde.tar.gz |
initial import of opera-legacy 12.16-3
-rw-r--r-- | .SRCINFO | 25 | ||||
-rw-r--r-- | PKGBUILD | 39 | ||||
-rw-r--r-- | opera.install | 20 |
3 files changed, 84 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..f6c9581556a3 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,25 @@ +pkgbase = opera-legacy + pkgdesc = Fast and secure web browser and Internet suite - legacy (pre blink) version + pkgver = 12.16.1860 + pkgrel = 3 + url = http://www.opera.com/browser/ + install = opera.install + arch = i686 + arch = x86_64 + license = custom:opera + depends = gcc-libs + depends = libxt + depends = freetype2 + depends = libxext + depends = glib2 + depends = ttf-font + depends = shared-mime-info + depends = hicolor-icon-theme + depends = desktop-file-utils + optdepends = gstreamer0.10-base-plugins: HTML5 Video support + optdepends = gstreamer0.10-good: HTML5 Video support + options = !strip + options = !zipman + +pkgname = opera-legacy + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..1dcc4aeaab85 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: Christian Hesse <mail@eworm.de> +# Contributor: BlackEagle < ike DOT devolder AT gmail DOT com > +# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org> +# Contributor: Mateusz Herych <heniekk@gmail.com> +# Contributor: ruario <ruario AT opera 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-legacy +_ver=12.16 +_build=1860 +pkgver=${_ver}.${_build} +pkgrel=3 +pkgdesc='Fast and secure web browser and Internet suite - legacy (pre blink) version' +arch=('i686' 'x86_64') +url='http://www.opera.com/browser/' +license=('custom:opera') +depends=('gcc-libs' 'libxt' 'freetype2' 'libxext' 'glib2' 'ttf-font' + 'shared-mime-info' 'hicolor-icon-theme' 'desktop-file-utils') +optdepends=('gstreamer0.10-base-plugins: HTML5 Video support' + 'gstreamer0.10-good: HTML5 Video support') +install=opera.install +options=(!strip !zipman) + +if [[ ${CARCH} == i686 ]]; then + _arch=i386 + source=(http://get.geo.opera.com/pub/opera/linux/${_ver/./}/opera-${_ver}-${_build}.${_arch}.linux.tar.xz) + sha256sums=('df640656a52b7c714faf25de92d84992116ce8f82b7a67afc1121eb3c428489d') +elif [[ ${CARCH} == x86_64 ]]; then + _arch=${CARCH} + source=(http://get.geo.opera.com/pub/opera/linux/${_ver/./}/opera-${_ver}-${_build}.${_arch}.linux.tar.xz) + sha256sums=('b3b5cada3829d2b3b0e2da25e9444ce9dff73dc6692586ce72cfd4f6431e639e') +fi + +package() { + opera-${_ver}-${_build}.${_arch}.linux/install --name ${pkgname} --prefix /usr --repackage ${pkgdir}/usr + install -Dm 0644 ${pkgdir}/usr/share/${pkgname}/defaults/license.txt ${pkgdir}/usr/share/licenses/${pkgname}/license.txt +} diff --git a/opera.install b/opera.install new file mode 100644 index 000000000000..1190e6fd6261 --- /dev/null +++ b/opera.install @@ -0,0 +1,20 @@ +available() { + which "$1" >/dev/null 2>&1 +} + +post_install() { + update-mime-database /usr/share/mime >/dev/null + update-desktop-database -q /usr/share/applications + + 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 +} |