# Template file for 'vivaldi' pkgname=vivaldi version=2.0.1309.42 revision=1 _release=1 only_for_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 " license="Proprietary" homepage="https://vivaldi.com" repository=nonfree restricted=yes nostrip=yes if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then _debarch=amd64 checksum=5387a7bcafed1cfffc5a0b9bdcb3fd8b1ffd19e6873f0107512b971544074940 else _debarch=i386 checksum=158ca0605182544e11ac9d83cc3c636205551cd73da6448002332f24fd84dcf8 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 }