39 lines
1.0 KiB
Bash
39 lines
1.0 KiB
Bash
# Template file for 'vivaldi'
|
|
pkgname=vivaldi
|
|
version=1.12.955.36
|
|
revision=1
|
|
_release=1
|
|
only_for_archs="i686 x86_64"
|
|
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
|
|
nopie=yes
|
|
|
|
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
|
_debarch=amd64
|
|
checksum=12775223bfd916d8792dfbfa4d5cd5985def263ab6eb9e1ce5de6fec17d9063a
|
|
else
|
|
_debarch=i386
|
|
checksum=5f5e378f9911eb61e805a0da3d612c968fdb7ac21470d32e768a54739265de4d
|
|
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
|
|
}
|
|
|
|
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
|
|
ln -sf /opt/vivaldi/vivaldi ${DESTDIR}/usr/bin/vivaldi-stable
|
|
}
|