yandex-browser.sh 943 Bytes
Newer Older
1 2
#!/bin/sh

3 4 5 6
BASEPKGNAME=yandex-browser
SUPPORTEDARCHES="x86_64"
PRODUCTALT="stable beta"
VERSION="$2"
7
DESCRIPTION="Yandex browser from the official site"
8
TIPS="Run 'epm play yandex-browser=beta' to install beta version of the browser."
9

10
. $(dirname $0)/common.sh
11 12 13

# See also https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=yandex-browser-beta

14
URL="https://repo.yandex.ru/yandex-browser"
15

16
if [ "$(epm print info -s)" = "alt" ] || [ "$(epm print info -p)" != "rpm" ] ; then
17
    epm install "$URL/deb/pool/main/y/$PKGNAME/$(epm print constructname $PKGNAME "$VERSION*" amd64 deb)" || exit
18 19
else
    # https://repo.yandex.ru/yandex-browser/rpm/stable/x86_64/yandex-browser-stable-23.1.1.1114-1.x86_64.rpm
20
    epm install "$URL/rpm/stable/x86_64/$(epm print constructname $PKGNAME "$VERSION*" x86_64 rpm)" || exit
21
fi
22

23 24
UPDATEFFMPEG=$(epm ql $PKGNAME | grep update-ffmpeg) || fatal
epm pack --install $PKGNAME-codecs-ffmpeg-extra $UPDATEFFMPEG