void-packages/srcpkgs/opera/template
2017-11-21 22:27:33 -05:00

33 lines
1.1 KiB
Bash

# Template file for 'opera'
pkgname=opera
version=49.0.2725.39
revision=1
only_for_archs="x86_64"
hostmakedepends="freetype-devel"
depends="ffmpeg desktop-file-utils hicolor-icon-theme"
short_desc="Fast, secure, easy to use browser"
maintainer="Diogo Leal <diogo@diogoleal.com>"
license="Proprietary"
repository="nonfree"
homepage="https://www.opera.com/computer"
nostrip=yes
# https is horribly slow!
distfiles="http://get.geo.opera.com/pub/opera/desktop/${version}/linux/${pkgname}-stable_${version}_amd64.deb"
checksum=e1bbba7608ea5cd316c41ff529ce0e491c711adb0b19ee502b5fed7d6c2f953a
do_extract() {
ar x ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${pkgname}-stable_${version}_amd64.deb
tar xf data.tar.xz --exclude=./usr/share/{lintian,menu}
}
do_install() {
vbin ${FILESDIR}/opera
vlicense usr/share/doc/opera-stable/copyright
rm -rf usr/share/doc
vcopy usr/lib/x86_64-linux-gnu usr/lib
vcopy usr/share /usr/share
ln -sf /usr/lib/libfreetype.so.6 ${DESTDIR}/usr/lib/opera/libfreetype.so.6
# suid opera_sandbox
chmod 4755 ${DESTDIR}/usr/lib/opera/opera_sandbox
}