void-packages/srcpkgs/vivaldi/template

37 lines
1002 B
Bash

# Template file for 'vivaldi'
pkgname=vivaldi
version=1.1.453.47
revision=1
_release=1
only_for_archs="i686 x86_64"
short_desc="An 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
if [ "${XBPS_TARGET_MACHINE}" = "x86_64" ];then
_debarch=amd64
checksum=982f5cd3f5811becf6f915ff1252ff4d7e7c958dd44491008e4c364fa26e6a26
else
_debarch=i386
checksum=e3a3e3eb3d7d928b38866c15836a4ec89a0c6cdb850c09be36ef4e0b2f08a42c
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
cd ${wrksrc}
tar xfJ data.tar.xz
}
do_install() {
vcopy opt/ /opt
vcopy usr /
for res in 24 48 64; do
vinstall opt/vivaldi/product_logo_${res}.png 0644\
/usr/share/icons/hicolor/${res}x${res}/apps/vivaldi.png
done
}