38 lines
1003 B
Bash
38 lines
1003 B
Bash
# Template file for 'vivaldi'
|
|
pkgname=vivaldi
|
|
version=1.0.403.24
|
|
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=43d3c487a65383cf1872ac84a54f21b3f1972a8bc124aa2f5d0bd176d51a8188
|
|
else
|
|
_debarch=i386
|
|
checksum=d05a3ee4803c88dd4fd7ecee63e3d4659554f6403590091d10f665396aed5139
|
|
fi
|
|
|
|
distfiles="https://vivaldi.com/download/stable/vivaldi-beta_${version}-${_release}_${_debarch}.deb"
|
|
|
|
do_extract() {
|
|
ar x ${XBPS_SRCDISTDIR}/${pkgname}-${version}/vivaldi-beta_${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-beta/product_logo_${res}.png 0644\
|
|
/usr/share/icons/hicolor/${res}x${res}/apps/vivaldi.png
|
|
done
|
|
}
|