opera.sh 745 Bytes
Newer Older
1 2
#!/bin/sh

3
BASEPKGNAME=opera
4
SUPPORTEDARCHES="x86_64"
5 6 7
PRODUCTALT="stable beta developer"
VERSION="$2"
DESCRIPTION="Opera browser from the official site"
8
URL="https://opera.com"
9 10 11 12 13

. $(dirname $0)/common.sh

arch="amd64"

14
# will use libffmpeg.so (via config added in repack)
15
epm install --skip-installed ffmpeg-plugin-browser || epm play nwjs-ffmpeg-prebuilt
16 17

if [ "$(epm print info -p)" = "rpm" ] ; then
18
    pkgname="${PKGNAME/-/_}"
19

20
    # they put all branch here (rpm only): https://rpm.opera.com/rpm/
21
    PKGURL="https://rpm.opera.com/rpm/$pkgname-$VERSION-linux-release-x64-signed.rpm"
22 23
else
    PKGURL="https://deb.opera.com/opera-developer/pool/non-free/o/$PKGNAME/$(epm print constructname $PKGNAME "$VERSION" $arch deb)"
24
fi
25

26
install_pkgurl