void-packages/srcpkgs/opera/template
Diogo Leal bf5adfcd13 opera: update to 47.0.2631.39
Closes: #7346 [via git-merge-pr]
2017-08-12 01:20:12 +02:00

28 lines
903 B
Bash

# Template file for 'opera'
pkgname=opera
version=47.0.2631.39
revision=1
only_for_archs="x86_64"
hostmakedepends="freetype-devel"
depends="ffmpeg desktop-file-utils"
short_desc="Fast, secure, easy to use browser"
maintainer="Diogo Leal <diogo@diogoleal.com>"
license="Proprietary"
repository="nonfree"
homepage="https://www.opera.com/computer"
nopie=yes
distfiles="https://get.geo.opera.com/pub/${pkgname}/desktop/${version}/linux/${pkgname}-stable_${version}_amd64.deb"
checksum=9a719476fc632656b56511f4b51b64707b2b7478268c1824214db0b08b74fef9
do_extract() {
ar x ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${pkgname}-stable_${version}_amd64.deb
tar xf data.tar.xz
}
do_install() {
vbin ${FILESDIR}/opera
vcopy usr/lib/x86_64-linux-gnu usr/lib
vcopy usr/share /usr/share
vlicense usr/share/doc/opera-stable/copyright
ln -sf /usr/lib/libfreetype.so.6 ${DESTDIR}/usr/lib/opera/libfreetype.so.6
}