42ae642fa3
Also: - enable sandboxing with user namespaces.
33 lines
920 B
Bash
33 lines
920 B
Bash
# Template file for 'opera'
|
|
pkgname=opera
|
|
version=80.0.4170.72
|
|
revision=2
|
|
archs="x86_64"
|
|
create_wrksrc=yes
|
|
hostmakedepends="rpmextract"
|
|
depends="ffmpeg desktop-file-utils hicolor-icon-theme"
|
|
short_desc="Fast, secure, easy to use browser"
|
|
maintainer="mobinmob <mobinmob@disroot.org>"
|
|
license="custom:Proprietary"
|
|
homepage="https://www.opera.com/computer"
|
|
distfiles="https://rpm.opera.com/rpm/opera_stable-${version}-linux-release-x64-signed.rpm"
|
|
checksum=3f3ece9bae6576b6ef5e2908733c112695ea535801bc6fb422b9fe7a79c097cc
|
|
repository="nonfree"
|
|
nostrip=yes
|
|
|
|
do_install() {
|
|
# Create necessary dirs
|
|
vmkdir usr/bin
|
|
vmkdir usr/lib
|
|
|
|
# Copy files
|
|
vcopy usr/lib64/opera /usr/lib/
|
|
vcopy usr/share /usr/share/
|
|
|
|
# Link executable in path
|
|
ln -s ../lib/opera/opera "${DESTDIR}/usr/bin/opera"
|
|
|
|
# Install licenses
|
|
vlicense usr/lib64/opera/resources/eula_desktop_eea.txt
|
|
vlicense usr/lib64/opera/resources/eula_desktop_row.txt
|
|
}
|