void-packages/srcpkgs/vivaldi/template
classabbyamp 43334efc72 vivaldi: update to 6.0.2979.18, unrestrict, support user flags, adopt.
will now read the contents of `$XDG_CONFIG_HOME/vivaldi-stable.conf` and
pass that to the underlying binary

patch comes from arch

for example, to force `prefers-color-scheme: dark` and work on wayland:
```
$ cat ~/.config/vivaldi-stable.conf
--force-dark-mode --ozone-platform-hint=auto
```

missing dependencies libnotify and xdg-utils also added

permission to redistribute has now been granted, see:
srcpkgs/vivaldi/files/redistribution-permission.eml
2023-05-06 10:06:50 -04:00

60 lines
1.7 KiB
Bash

# Template file for 'vivaldi'
# Permission to redistribute is granted.
# see: srcpkgs/vivaldi/files/redistribution-permission.eml
pkgname=vivaldi
version=6.0.2979.18
revision=1
_release=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"
case "$XBPS_TARGET_MACHINE" in
x86_64)
distfiles="https://downloads.vivaldi.com/stable/vivaldi-stable_${version}-${_release}_amd64.deb"
checksum=baa8572fb9277661a838e6a5c90ea6571441de4f0bd75509cc00c29cd6a48fae
;;
aarch64)
distfiles="https://downloads.vivaldi.com/stable/vivaldi-stable_${version}-${_release}_arm64.deb"
checksum=4b76f49a65ac42158328fcf7e06cdbe74abec00511005344b7a22f0aaa3c08cb
;;
armv7l)
distfiles="https://downloads.vivaldi.com/stable/vivaldi-stable_${version}-${_release}_armhf.deb"
checksum=7ddd07ade52ef79aa41a3467737620b941491482250b03a7f06f11de2c71ec1e
;;
*)
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
}