min.sh 539 Bytes
Newer Older
Michael Chernigin's avatar
Michael Chernigin committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
#!/bin/sh

PKGNAME=min
SUPPORTEDARCHES="x86_64 aarch64 armhf"
VERSION="$2"
DESCRIPTION="A fast, minimal browser that protects your privacy"
URL="https://github.com/minbrowser/min"

. $(dirname $0)/common.sh

arch="$(epm print info -a)"
case "$arch" in
x86_64)
    file="min-${VERSION}-amd64.deb"
    ;;
aarch64)
    file="min-${VERSION}-arm64.deb"
    ;;
armhf)
    file="min-${VERSION}-armv7l.deb"
    ;;
*)
    fatal "$arch arch is not supported"
    ;;
esac

PKGURL="$(eget --list --latest "${URL}"/releases "${file}")"

install_pkgurl