59 lines
1.7 KiB
Bash
59 lines
1.7 KiB
Bash
# Template file for 'vivaldi'
|
|
pkgname=vivaldi
|
|
version=3.4.2066.90
|
|
revision=1
|
|
_release=1
|
|
archs="i686 x86_64"
|
|
hostmakedepends="curl python3-html2text python3-setuptools"
|
|
depends="desktop-file-utils hicolor-icon-theme"
|
|
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"
|
|
repository=nonfree
|
|
restricted=yes
|
|
nostrip=yes
|
|
|
|
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
|
_debarch=amd64
|
|
checksum=e1779d973c87006685a890bb70de281fc5e279ff16bbcef0d7286f2045663b15
|
|
else
|
|
_debarch=i386
|
|
checksum=0f677c48eb8e649494ec51bac49d3bcdcb7f102fe495d2abb8b9813889531caf
|
|
fi
|
|
|
|
distfiles="https://downloads.vivaldi.com/stable/vivaldi-stable_${version}-${_release}_${_debarch}.deb"
|
|
_licenseUrl="https://vivaldi.com/privacy/vivaldi-end-user-license-agreement/"
|
|
|
|
do_extract() {
|
|
ar x ${XBPS_SRCDISTDIR}/${pkgname}-${version}/vivaldi-stable_${version}-${_release}_${_debarch}.deb
|
|
bsdtar xf data.tar.xz --exclude={./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
|
|
}
|