void-packages/srcpkgs/vivaldi/template
2016-04-09 07:12:30 -03:00

37 lines
1,002 B
Bash

# Template file for 'vivaldi'
pkgname=vivaldi
version=1.0.435.40
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=12c051a40258a95f9594eed2f73fa5f591482ac2a41d5cf643811b1ea2a1efbf
else
_debarch=i386
checksum=6e0b84fba38211bab9a71bc10e97398fca77c0acd82791923c1d432b20846f0f
fi
distfiles="https://vivaldi.com/download/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
}