chromium-gost.sh 662 Bytes
Newer Older
1
#!/bin/sh
2

3
# filename does not contain -stable, but package name with -stable
4
PKGNAME=chromium-gost-stable
5
SUPPORTEDARCHES="x86_64"
6
DESCRIPTION="Chromium with GOST support from the official site"
7

8
. $(dirname $0)/common.sh
9

10
# TODO: use get_pkgvendor = "ALT Linux Team"
11
if epm installed chromium-gost ; then
12 13
    echo "Package chromium-gost is already installed from ALT repository."
    exit 0
14 15
fi

16 17
#arch=$($DISTRVENDOR --distro-arch)
#pkgtype=$($DISTRVENDOR -p)
18 19 20
arch=amd64
pkgtype=deb

21
PKG=$(epm tool eget --list --latest https://github.com/deemru/chromium-gost/releases "chromium-gost-*linux-$arch.$pkgtype") || fatal "Can't get package URL"
22 23

epm install "$PKG"