43 lines
1.2 KiB
Bash
43 lines
1.2 KiB
Bash
# Template file for 'vivaldi'
|
|
pkgname=vivaldi
|
|
version=1.13.1008.36
|
|
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=148e69194a209df07f9a4a114883ac795cfeb87087b371dac276062436c242fc
|
|
else
|
|
_debarch=i386
|
|
checksum=0056d0eafc3b3538ea5a46d68762adda5f42df5ff301cd1bbffacbdd59f42db8
|
|
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 /
|
|
|
|
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
|
|
}
|