diff options
author | BlackEagle | 2019-02-20 22:12:26 +0100 |
---|---|---|
committer | BlackEagle | 2019-02-20 22:12:26 +0100 |
commit | 46338a18aca60c448df7115358083d496009fd71 (patch) | |
tree | 24c19a42b8e08df19fa48f74b89893fe92595016 /PKGBUILD | |
parent | 9caff15c1cf1d4050b345aade4e060dede5bfb92 (diff) | |
download | aur-46338a18aca60c448df7115358083d496009fd71.tar.gz |
opera-beta :: 58.0.3135.59-2
Signed-off-by: BlackEagle <ike.devolder@gmail.com>
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 77 |
1 files changed, 37 insertions, 40 deletions
@@ -1,66 +1,63 @@ -# Maintainer: Christian Hesse <mail@eworm.de> +# Maintainer: BlackEagle +# Contributor: Christian Hesse <mail@eworm.de> +# Contributor: ruario +# Contributor: RobertMe +# Contributor: Skunnyk +# Contributor: totoloco pkgname=opera-beta -pkgver=58.0.3135.30 -pkgrel=1 +pkgver=58.0.3135.59 +pkgrel=2 pkgdesc='A fast and secure web browser and Internet suite - beta stream' arch=('x86_64') url='https://www.opera.com/computer' license=('custom:opera') -depends=('alsa-lib' 'nss' 'gtk3' 'gconf' 'libxss' 'libxtst' 'desktop-file-utils') -optdepends=('curl: opera crash reporter and autoupdate checker' - 'libnotify: native desktop notifications' - "${pkgname}-ffmpeg-codecs: support h.264 and mp3 codecs") -options=(!strip) -backup=("etc/${pkgname}/default") -_source='https://get.geo.opera.com/pub/' -# alternative downloads: -# http://get.geo.opera.com/pub/ -# https://ftp.opera.com/pub/ -# http://ftp.opera.com/pub/ -# ftp://ftp.opera.com/pub/ -source=("${_source}/${pkgname}/${pkgver}/linux/${pkgname}_${pkgver}_amd64.deb" - 'opera' - 'default') -sha256sums=('18822250ead12204ca04e6c05b6b5b8363d57ec4446533c9439e5b430628fe1d' - '508512464e24126fddfb2c41a1e2e86624bdb0c0748084b6a922573b6cf6b9c5' - '99fc0d2822edd14e234d451995db47148125e4580221a292598959421d131231') +provides=('opera') +depends=('gtk3' 'alsa-lib' 'libnotify' 'curl' 'nss' 'libxss' 'ttf-font' 'desktop-file-utils' 'shared-mime-info' 'hicolor-icon-theme') +optdepends=( + 'opera-developer-ffmpeg-codecs: playback of proprietary video/audio' + 'pepper-flash: flash support' + 'upower: opera battery save' +) +source=( + "http://deb.opera.com/opera/pool/non-free/o/${pkgname}/${pkgname}_${pkgver}_amd64.deb" + "opera" + "default" +) +sha256sums=('fc9b9cdbb867145ffd3ad075320b7ac30a08dccd24e5967aa16e89aa60d2c090' + '508512464e24126fddfb2c41a1e2e86624bdb0c0748084b6a922573b6cf6b9c5' + '99fc0d2822edd14e234d451995db47148125e4580221a292598959421d131231') prepare() { - cd ${srcdir}/ + sed -e "s/%pkgname%/$pkgname/g" -i "$srcdir/opera" + sed -e "s/%operabin%/$pkgname\/$pkgname/g" \ + -i "$srcdir/opera" - sed -i -e "s/%pkgname%/${pkgname}/g" \ - -e "s/%operabin%/${pkgname}\/${pkgname}/g" \ - opera default } package() { - cd ${srcdir}/ - - # this is nested archive with final directory structure, - # so extract the inner tarball to ${pkgdir} - tar xJf data.tar.xz -C "${pkgdir}/" + tar -xf data.tar.xz --exclude=usr/share/{lintian,menu} -C "$pkgdir/" # get rid of the extra subfolder {i386,x86_64}-linux-gnu ( - cd "${pkgdir}/usr/lib/"*-linux-gnu/ - mv "${pkgname}" ../ + cd "$pkgdir/usr/lib/"*-linux-gnu/ + mv "$pkgname" ../ ) - rm -rf "${pkgdir}/usr/lib/"*-linux-gnu + rm -rf "$pkgdir/usr/lib/"*-linux-gnu - # set suid bit for Opera sandbox - chmod 4755 "${pkgdir}/usr/lib/${pkgname}/opera_sandbox" + # suid opera_sandbox + chmod 4755 "$pkgdir/usr/lib/$pkgname/opera_sandbox" # install default options - install -Dm644 "default" "${pkgdir}/etc/${pkgname}/default" + install -Dm644 "$srcdir/default" "$pkgdir/etc/$pkgname/default" # install opera wrapper - rm "${pkgdir}/usr/bin/${pkgname}" - install -Dm755 "opera" "${pkgdir}/usr/bin/${pkgname}" + rm "$pkgdir/usr/bin/$pkgname" + install -Dm755 "$srcdir/opera" "$pkgdir/usr/bin/$pkgname" # license install -Dm644 \ - "${pkgdir}/usr/share/doc/${pkgname}/copyright" \ - "${pkgdir}/usr/share/licenses/${pkgname}/copyright" + "$pkgdir/usr/share/doc/$pkgname/copyright" \ + "$pkgdir/usr/share/licenses/$pkgname/copyright" } |