opera: change distfile to rpm, adopt.
Also: - enable sandboxing with user namespaces.
This commit is contained in:
parent
724f8b6482
commit
42ae642fa3
|
@ -1,35 +1,33 @@
|
||||||
# Template file for 'opera'
|
# Template file for 'opera'
|
||||||
pkgname=opera
|
pkgname=opera
|
||||||
version=80.0.4170.72
|
version=80.0.4170.72
|
||||||
revision=1
|
revision=2
|
||||||
archs="x86_64"
|
archs="x86_64"
|
||||||
|
create_wrksrc=yes
|
||||||
|
hostmakedepends="rpmextract"
|
||||||
depends="ffmpeg desktop-file-utils hicolor-icon-theme"
|
depends="ffmpeg desktop-file-utils hicolor-icon-theme"
|
||||||
short_desc="Fast, secure, easy to use browser"
|
short_desc="Fast, secure, easy to use browser"
|
||||||
maintainer="Diogo Leal <diogo@diogoleal.com>"
|
maintainer="mobinmob <mobinmob@disroot.org>"
|
||||||
license="custom:Proprietary"
|
license="custom:Proprietary"
|
||||||
homepage="https://www.opera.com/computer"
|
homepage="https://www.opera.com/computer"
|
||||||
distfiles="http://get.geo.opera.com/pub/opera/desktop/${version}/linux/${pkgname}-stable_${version}_amd64.deb"
|
distfiles="https://rpm.opera.com/rpm/opera_stable-${version}-linux-release-x64-signed.rpm"
|
||||||
checksum=f6b9e132c9cd2f7343ffb5fae1edb80a08087bac90ddb53d5fb2e475f834177a
|
checksum=3f3ece9bae6576b6ef5e2908733c112695ea535801bc6fb422b9fe7a79c097cc
|
||||||
repository="nonfree"
|
repository="nonfree"
|
||||||
nostrip=yes
|
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() {
|
do_install() {
|
||||||
vmkdir /usr/lib
|
# Create necessary dirs
|
||||||
vcopy usr/lib/x86_64-linux-gnu/opera /usr/lib
|
vmkdir usr/bin
|
||||||
|
vmkdir usr/lib
|
||||||
|
|
||||||
vmkdir /usr/bin
|
# Copy files
|
||||||
ln -s ../lib/opera/opera ${DESTDIR}/usr/bin/opera
|
vcopy usr/lib64/opera /usr/lib/
|
||||||
|
vcopy usr/share /usr/share/
|
||||||
|
|
||||||
vlicense usr/share/doc/opera-stable/copyright
|
# Link executable in path
|
||||||
rm -rf usr/share/doc
|
ln -s ../lib/opera/opera "${DESTDIR}/usr/bin/opera"
|
||||||
|
|
||||||
vcopy usr/share /usr
|
# Install licenses
|
||||||
|
vlicense usr/lib64/opera/resources/eula_desktop_eea.txt
|
||||||
# suid opera_sandbox
|
vlicense usr/lib64/opera/resources/eula_desktop_row.txt
|
||||||
chmod 4755 ${DESTDIR}/usr/lib/opera/opera_sandbox
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue