# Maintainer: BlackIkeEagle # Contributor: TZ86 pkgname=vivaldi-snapshot pkgver=1.7.735.29 pkgrel=1 pkgdesc='An advanced browser made with the power user in mind. (weekly snapshot)' url="https://vivaldi.com" options=(!strip !zipman) license=('custom') arch=('i686' 'x86_64') depends=('gtk2' 'nss' 'libxtst' 'gconf' 'libxss' 'freetype2' 'ttf-font' 'desktop-file-utils' 'shared-mime-info' 'alsa-lib' 'hicolor-icon-theme') optdepends=( 'vivaldi-snapshot-ffmpeg-codecs: playback of proprietary video/audio' 'google-chrome: Widevine DRM Plugin' 'vivaldi-widevine: Widevine DRM Plugin' ) source_i686=("https://downloads.vivaldi.com/snapshot/vivaldi-snapshot-${pkgver}-1.i386.rpm") source_x86_64=("https://downloads.vivaldi.com/snapshot/vivaldi-snapshot-${pkgver}-1.x86_64.rpm") sha256sums_i686=('072de118fe6040bf7f3c584e6fd97377bb76b9b1375e4f17f3a0288c62af1826') sha256sums_x86_64=('5c2dffe8561892fe1dadc4c5af1a710dc60c476b38e97f111fc79ced83d1c9f9') package() { cp -a {opt,usr} "$pkgdir" # suid sanbox chmod 4755 "$pkgdir/opt/vivaldi-snapshot/vivaldi-sandbox" # make /usr/bin/vivaldi-snapshot available binf="$pkgdir/usr/bin/vivaldi-snapshot" if [[ ! -e "$binf" ]] && [[ ! -f "$binf" ]] && [[ ! -L "$binf" ]]; then install -dm755 "$pkgdir/usr/bin" ln -s /opt/$pkgname/$pkgname "$binf" fi # install icons for res in 16 22 24 32 48 64 128 256; do install -Dm644 "$pkgdir/opt/vivaldi-snapshot/product_logo_${res}.png" \ "$pkgdir/usr/share/icons/hicolor/${res}x${res}/apps/vivaldi-snapshot.png" done }