vivaldi.sh 1.01 KB
Newer Older
1 2
#!/bin/sh

3
DESCRIPTION="Vivaldi browser from the official site"
4

5
PRODUCTALT="stable snapshot"
6 7 8 9 10
BRANCH=stable
if [ "$2" = "snapshot" ] || epm installed vivaldi-snapshot ; then
    BRANCH=snapshot
fi
PKGNAME=vivaldi-$BRANCH
11
SUPPORTEDARCHES="x86_64 x86 aarch64 armhf"
12

13
. $(dirname $0)/common.sh
14

15

16
arch="$($DISTRVENDOR --debian-arch)"
17
case "$arch" in
18
    amd64|aarch64|i386|armhf)
19 20
        ;;
    *)
21
        fatal "Debian $arch arch is not supported"
22 23 24
        ;;
esac

25
# See also https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=vivaldi
26 27 28 29 30 31 32

# TODO:
# https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=vivaldi-ffmpeg-codecs

# https://repo.vivaldi.com/archive/rpm/x86_64/

# epm uses eget to download * names
33 34
#epm install "https://repo.vivaldi.com/archive/deb/pool/main/$(epm print constructname $PKGNAME "*" $arch deb)"

35
PKGURL="$(epm tool eget --list --latest https://vivaldi.com/ru/download "$(epm print constructname $PKGNAME "*" $arch deb)")" || fatal
36
epm install $PKGURL || fatal
37 38

epm play vivaldi-codecs-ffmpeg-extra $BRANCH