# Maintainer: BlackIkeEagle # Contributor: TZ86 pkgname=vivaldi-snapshot pkgver=1.9.818.25 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") sha512sums_i686=('7ba752a57e72c53e14f2ae8c9bcb72c71749b0f30d691534223d12b3fc33936592a3c3b3b3b9b20758dd3e78d7685b1904e918e61a4c81a3e490010b320794b9') sha512sums_x86_64=('88b2a526f2953d50e83dc8a9db3960f8cd96136970206798ef63f472ba5e71e8d22a36f8f854cb371c865a3a79fa2d5cbba713fd4b92fbcc7a06b00fcbdb06ab') 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 }