66 lines
1.9 KiB
Bash
66 lines
1.9 KiB
Bash
# Template file for 'vivaldi'
|
|
pkgname=vivaldi
|
|
version=5.6.2867.50
|
|
revision=1
|
|
_release=1
|
|
archs="x86_64 aarch64 armv7l"
|
|
hostmakedepends="curl python3-html2text python3-setuptools"
|
|
depends="desktop-file-utils hicolor-icon-theme xz"
|
|
short_desc="Advanced browser made with the power user in mind"
|
|
maintainer="Diogo Leal <diogo@diogoleal.com>"
|
|
# EULA: https://vivaldi.com/privacy/vivaldi-end-user-license-agreement/
|
|
# Privacy Policy: https://vivaldi.com/privacy/browser/
|
|
license="custom:Proprietary"
|
|
homepage="https://vivaldi.com"
|
|
_licenseUrl="https://vivaldi.com/privacy/vivaldi-end-user-license-agreement/"
|
|
repository=nonfree
|
|
restricted=yes
|
|
nostrip=yes
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
x86_64)
|
|
distfiles="https://downloads.vivaldi.com/stable/vivaldi-stable_${version}-${_release}_amd64.deb"
|
|
checksum=8a26bfbbd442c49e0430f18d5103b3a23c8d8552e5c184c6ba16bff7ff10f882
|
|
;;
|
|
aarch64)
|
|
distfiles="https://downloads.vivaldi.com/stable/vivaldi-stable_${version}-${_release}_arm64.deb"
|
|
checksum=aec448206a36d05344b62d38e406fda81afa7abb6b81396df1513037134a11a7
|
|
;;
|
|
armv7l)
|
|
distfiles="https://downloads.vivaldi.com/stable/vivaldi-stable_${version}-${_release}_armhf.deb"
|
|
checksum=4868815e36f0b9a011e7f24a3408f40903a575fb11724f7a7993d505cf669cbd
|
|
;;
|
|
*)
|
|
broken="No distfiles available for this target"
|
|
;;
|
|
esac
|
|
|
|
post_extract() {
|
|
rm -r etc opt/vivaldi/cron
|
|
}
|
|
|
|
do_install() {
|
|
vinstall usr/share/applications/vivaldi-stable.desktop 0644 \
|
|
usr/share/applications
|
|
|
|
vmkdir opt
|
|
vcopy opt/vivaldi opt
|
|
|
|
vmkdir usr/bin
|
|
ln -s /opt/vivaldi/vivaldi ${DESTDIR}/usr/bin/vivaldi-stable
|
|
|
|
# suid sandbox
|
|
chmod 4755 ${DESTDIR}/opt/vivaldi/vivaldi-sandbox
|
|
|
|
for res in 16 22 24 32 48 64 128 256; do
|
|
vinstall opt/vivaldi/product_logo_${res}.png 0644 \
|
|
usr/share/icons/hicolor/${res}x${res}/apps vivaldi.png
|
|
done
|
|
}
|
|
|
|
post_install() {
|
|
curl ${_licenseUrl} \
|
|
| sed -n '/main id="main"/,/\/main/p' \
|
|
| html2text > EULA.md
|
|
vlicense EULA.md
|
|
}
|