51 lines
1.5 KiB
Bash
51 lines
1.5 KiB
Bash
# Template file for 'vivaldi'
|
|
pkgname=vivaldi
|
|
version=5.0.2497.35
|
|
revision=1
|
|
_release=1
|
|
archs="x86_64"
|
|
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"
|
|
distfiles="https://downloads.vivaldi.com/stable/vivaldi-stable_${version}-${_release}_amd64.deb"
|
|
_licenseUrl="https://vivaldi.com/privacy/vivaldi-end-user-license-agreement/"
|
|
checksum=5c1e7d89d008b6ed6ae6b9ef911676c08d14312e31cc103e7db72f0005e06cbc
|
|
repository=nonfree
|
|
restricted=yes
|
|
nostrip=yes
|
|
|
|
do_extract() {
|
|
ar x ${XBPS_SRCDISTDIR}/${pkgname}-${version}/vivaldi-stable_${version}-${_release}_amd64.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
|
|
}
|