35 lines
1,009 B
Bash
35 lines
1,009 B
Bash
# Template file for 'opera'
|
|
pkgname=opera
|
|
version=72.0.3815.186
|
|
revision=1
|
|
archs="x86_64"
|
|
depends="ffmpeg desktop-file-utils hicolor-icon-theme"
|
|
short_desc="Fast, secure, easy to use browser"
|
|
maintainer="Diogo Leal <diogo@diogoleal.com>"
|
|
license="custom:Proprietary"
|
|
homepage="https://www.opera.com/computer"
|
|
distfiles="http://get.geo.opera.com/pub/opera/desktop/${version}/linux/${pkgname}-stable_${version}_amd64.deb"
|
|
checksum=c1d0fa498df13a7a65d109caa2568b4748c2ff85d880a39e97e3fe7eca57ef7c
|
|
repository="nonfree"
|
|
nostrip=yes
|
|
|
|
do_extract() {
|
|
ar x ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${pkgname}-stable_${version}_amd64.deb
|
|
bsdtar 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
|
|
}
|