4b5d9dceaf
Closes #13280. Signed-off-by: Enno Boland <gottox@voidlinux.org>
48 lines
1.3 KiB
Bash
48 lines
1.3 KiB
Bash
# Template file for 'vivaldi'
|
|
pkgname=vivaldi
|
|
version=2.6.1566.49
|
|
revision=1
|
|
_release=1
|
|
archs="i686 x86_64"
|
|
depends="desktop-file-utils hicolor-icon-theme"
|
|
short_desc="Advanced browser made with the power user in mind"
|
|
maintainer="Diogo Leal <diogo@diogoleal.com>"
|
|
license="Proprietary"
|
|
homepage="https://vivaldi.com"
|
|
repository=nonfree
|
|
restricted=yes
|
|
nostrip=yes
|
|
|
|
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
|
_debarch=amd64
|
|
checksum=2d3155a0df6dc7023679b7134c39aee82260a7115db1a6cf9bb39a38305687c2
|
|
else
|
|
_debarch=i386
|
|
checksum=21b85a22429cc8a2831806fd9a452f44f91d74b343f18707f9c36d2d17a3bc0c
|
|
fi
|
|
|
|
distfiles="https://downloads.vivaldi.com/stable/vivaldi-stable_${version}-${_release}_${_debarch}.deb"
|
|
|
|
do_extract() {
|
|
ar x ${XBPS_SRCDISTDIR}/${pkgname}-${version}/vivaldi-stable_${version}-${_release}_${_debarch}.deb
|
|
tar 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
|
|
}
|