59 lines
1.6 KiB
Bash
59 lines
1.6 KiB
Bash
# Template file for 'vivaldi'
|
|
pkgname=vivaldi
|
|
version=5.7.2921.63
|
|
revision=1
|
|
_release=1
|
|
archs="x86_64 aarch64 armv7l"
|
|
depends="desktop-file-utils hicolor-icon-theme xz"
|
|
short_desc="Advanced browser made with the power user in mind"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="custom:Proprietary"
|
|
homepage="https://vivaldi.com"
|
|
repository=nonfree
|
|
restricted=yes
|
|
nostrip=yes
|
|
skiprdeps="/opt/vivaldi/libqt5_shim.so"
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
x86_64)
|
|
distfiles="https://downloads.vivaldi.com/stable/vivaldi-stable_${version}-${_release}_amd64.deb"
|
|
checksum=b7d0987f723e22b2a3383f7ab41650191df1c333eb66f9c3d49bcf3204e3cf43
|
|
;;
|
|
aarch64)
|
|
distfiles="https://downloads.vivaldi.com/stable/vivaldi-stable_${version}-${_release}_arm64.deb"
|
|
checksum=3acd80de46deb8c227f53169f197be4f01c360b915bc408917750332c42ae725
|
|
;;
|
|
armv7l)
|
|
distfiles="https://downloads.vivaldi.com/stable/vivaldi-stable_${version}-${_release}_armhf.deb"
|
|
checksum=24ca596aef712accac481fe1334df2e2cb9adec91ae68ddc9679ae599a5185d6
|
|
;;
|
|
*)
|
|
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() {
|
|
vlicense ${FILESDIR}/EULA
|
|
}
|