# Template file for 'vivaldi' pkgname=vivaldi version=1.6.689.34 revision=1 _release=1 only_for_archs="i686 x86_64" short_desc="An advanced browser made with the power user in mind" maintainer="Diogo Leal " license="Proprietary" homepage="https://vivaldi.com" repository="nonfree" restricted=yes nopie=yes if [ "${XBPS_TARGET_MACHINE}" = "x86_64" ];then _debarch=amd64 checksum=35c322461b893aeb020f0e84400f45cef5be52c6719e74dea8f55e48bf45c972 else _debarch=i386 checksum=e02b4abd62302812bd233fabe2da30a9605af75e993c14fb0bb64cee565cfe29 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 cd ${wrksrc} tar xfJ data.tar.xz } do_install() { vcopy opt/ /opt vcopy usr / for res in 24 48 64; do vinstall opt/vivaldi/product_logo_${res}.png 0644 \ /usr/share/icons/hicolor/${res}x${res}/apps vivaldi.png done ln -sf /opt/vivaldi/vivaldi ${DESTDIR}/usr/bin/vivaldi-stable }