64 lines
1.7 KiB
Bash
64 lines
1.7 KiB
Bash
# Template file for 'vivaldi'
|
|
# Permission to redistribute is granted.
|
|
# see: srcpkgs/vivaldi/files/redistribution-permission.eml
|
|
pkgname=vivaldi
|
|
version=7.0.3495.14+1
|
|
revision=1
|
|
archs="x86_64 aarch64 armv7l"
|
|
depends="desktop-file-utils hicolor-icon-theme xz libnotify xdg-utils"
|
|
short_desc="Advanced browser made with the power user in mind"
|
|
maintainer="classabbyamp <void@placeviolette.net>"
|
|
license="custom:Proprietary"
|
|
homepage="https://vivaldi.com"
|
|
repository=nonfree
|
|
nostrip=yes
|
|
skiprdeps="/opt/vivaldi/libqt5_shim.so /opt/vivaldi/libqt6_shim.so"
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
x86_64)
|
|
distfiles="https://downloads.vivaldi.com/stable/vivaldi-stable_${version//+/-}_amd64.deb"
|
|
checksum=4f541e7b055b6969063cb9d4987f6b2ce59cb642730a27a412cd3c45ab1cf77e
|
|
;;
|
|
aarch64)
|
|
distfiles="https://downloads.vivaldi.com/stable/vivaldi-stable_${version//+/-}_arm64.deb"
|
|
checksum=544a834c70665266900b60475d656d33cc888dd1e54cb700de70feb324b00760
|
|
;;
|
|
armv7l)
|
|
distfiles="https://downloads.vivaldi.com/stable/vivaldi-stable_${version//+/-}_armhf.deb"
|
|
checksum=9a1915c19a6624624531ec1f4a4719ff41a7c8edd9022e9a10fbef152b510bbc
|
|
;;
|
|
*)
|
|
broken="No distfiles available for this target"
|
|
;;
|
|
esac
|
|
|
|
post_extract() {
|
|
rm -r etc opt/vivaldi/cron
|
|
}
|
|
|
|
post_patch() {
|
|
rm opt/vivaldi/vivaldi.orig
|
|
}
|
|
|
|
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() {
|
|
vlicense ${FILESDIR}/EULA
|
|
}
|