void-packages/srcpkgs/vivaldi/template
2018-06-27 02:14:20 +02:00

45 lines
1.3 KiB
Bash

# Template file for 'vivaldi'
pkgname=vivaldi
version=1.15.1147.47
revision=1
_release=1
only_for_archs="i686 x86_64"
depends="desktop-file-utils hicolor-icon-theme"
short_desc="Advanced browser made with the power user in mind"
maintainer="Diogo Leal <diogo@diogoleal.com>"
license="Proprietary"
homepage="https://vivaldi.com"
repository="nonfree"
restricted=yes
nostrip=yes
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
_debarch=amd64
checksum=94a3efe2af7dbf7c1f79a2b9503d71615cb797fe38f263189489b53ee2c9da14
else
_debarch=i386
checksum=bd4e9f88161890fdb964da643933350a7d496f3eff61d78c001eeae2c76cf084
fi
distfiles="https://downloads.vivaldi.com/stable/vivaldi-stable_${version}-${_release}_${_debarch}.deb"
do_extract() {
ar x ${XBPS_SRCDISTDIR}/${pkgname}-${version}/vivaldi-stable_${version}-${_release}_${_debarch}.deb
tar xf data.tar.xz --exclude={./etc,./opt/vivaldi/cron,./usr/share/{doc,gnome-control-center,menu}}
}
do_install() {
vinstall usr/share/applications/vivaldi-stable.desktop 0644 \
/usr/share/applications
vcopy opt/ /opt
vcopy usr /
# suid sandbox
chmod 4755 ${DESTDIR}/opt/vivaldi/vivaldi-sandbox
for res in 16 22 24 32 48 64 128 256; do
vinstall opt/vivaldi/product_logo_${res}.png 0644 \
/usr/share/icons/hicolor/${res}x${res}/apps vivaldi.png
done
}