void-packages/srcpkgs/opera/template
2018-08-13 21:45:31 +02:00

39 lines
1.2 KiB
Bash

# Template file for 'opera'
pkgname=opera
version=54.0.2952.71
revision=2
only_for_archs="x86_64"
repository="nonfree"
nostrip=yes
depends="ffmpeg desktop-file-utils hicolor-icon-theme libGLES"
short_desc="Fast, secure, easy to use browser"
maintainer="Diogo Leal <diogo@diogoleal.com>"
license="Proprietary"
homepage="https://www.opera.com/computer"
distfiles="http://get.geo.opera.com/pub/opera/desktop/${version}/linux/${pkgname}-stable_${version}_amd64.deb"
checksum=ccccec959a331713ad296bb69163844ae92ff14c498a652357058f7a374c2fa3
# This soname is wrong and is only available on rpi-userland, the correct one is
# libGLESv2.so.2, skip checking this and add libGLES explicitly to depends=
skiprdeps="/usr/lib/opera/libGLESv2.so"
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() {
vmkdir /usr/lib
vcopy usr/lib/x86_64-linux-gnu/opera /usr/lib
vmkdir /usr/bin
ln -s ../lib/opera/opera ${DESTDIR}/usr/bin/opera
vlicense usr/share/doc/opera-stable/copyright
rm -rf usr/share/doc
vcopy usr/share /usr
# suid opera_sandbox
chmod 4755 ${DESTDIR}/usr/lib/opera/opera_sandbox
}