37 lines
1,012 B
Bash
37 lines
1,012 B
Bash
# Template file for 'vivaldi'
|
|
pkgname=vivaldi
|
|
version=1.4.589.11
|
|
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
|
|
nopie=yes
|
|
|
|
if [ "${XBPS_TARGET_MACHINE}" = "x86_64" ];then
|
|
_debarch=amd64
|
|
checksum=183b075c6e096138fb1c83918f2e9ba1f4d465c2284bb8c9991e1aece51fb801
|
|
else
|
|
_debarch=i386
|
|
checksum=6e270e579e815450686bfa74906b6e0789e73c3c3ddd7dcc413b705e92196ad3
|
|
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
|
|
}
|