Files
horizon-packages/srcpkgs/opera/template
T
2026-08-08 18:02:23 +02:00

48 lines
1.3 KiB
Bash

# Template file for 'opera'
pkgname=opera
version=134.0.5954.46
revision=1
archs="x86_64 aarch64"
create_wrksrc=yes
depends="ffmpeg6 desktop-file-utils hicolor-icon-theme libcanberra-gtk3 gsettings-desktop-schemas"
short_desc="Fast, secure, easy to use browser"
maintainer="mobinmob <mobinmob@disroot.org>"
license="custom:Proprietary"
homepage="https://www.opera.com/computer"
repository="nonfree"
nostrip=yes
case "$XBPS_TARGET_MACHINE" in
x86_64*)
distfiles="https://rpm.opera.com/rpm/opera_stable-${version}-linux-release-x64-signed.rpm"
checksum=f038613774aa589ac90e278cc16f335c8c4f59dfd9b15fcf261bcea78b727229
;;
aarch64*)
distfiles="https://rpm.opera.com/rpm/opera_stable-${version}-linux-release-arm64-signed.rpm"
checksum=428f30af93ef4a6cf513e2852523ef995972e3c0ded9c0dd8bbb1dca69b775fe
;;
*)
broken="No distfiles available for this target"
;;
esac
do_install() {
vmkdir usr/bin
vmkdir usr/lib
# Copy files
case "$XBPS_TARGET_MACHINE" in
x86_64*) _libdir="usr/lib64/opera-stable" ;;
aarch64*) _libdir="usr/aarch64/opera-stable" ;;
esac
vcopy "${_libdir}" usr/lib/
vcopy usr/share usr/share/
# Link executable in path
ln -s ../lib/opera-stable/opera "${DESTDIR}/usr/bin/opera"
# Install 3rd-party licenses
vlicense "${_libdir}/opera_autoupdate.licenses"
}