void-packages/srcpkgs/opera/template
cr6gtx 93e83ac54d opera: update to 46.0.2597.32
Closes: #6872 [via git-merge-pr]
2017-06-29 00:25:57 -07:00

29 lines
917 B
Bash

# Template file for 'opera'
pkgname=opera
version=46.0.2597.32
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=5b1a4724cd6b0719aa2c07a4055a02e35b23c7f8890eb9749364af54a101ad30
do_extract() {
ar x ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${pkgname}-stable_${version}_amd64.deb
cd ${wrksrc}
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
}