vuescan.sh 711 Bytes
Newer Older
1 2 3 4
#!/bin/sh

PKGNAME=vuescan
SUPPORTEDARCHES="x86_64 x86 aarch64 armhf"
5
VERSION="$2"
6 7
DESCRIPTION="VueScan from the official site"
URL="https://www.hamrick.com/alternate-versions.html"
8 9 10

. $(dirname $0)/common.sh

11
warn_version_is_not_supported
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33

arch="$(epm print info -a)"
case "$arch" in
    x86_64)
        file="vuex64"
        ;;
    x86)
        file="vuex32"
        ;;
    armhf)
        file="vuea32"
        ;;
    aarch64)
        file="vuea64"
        ;;
    *)
        fatal "$arch arch is not supported"
        ;;
esac

pkgtype="$(epm print info -p)"

34
PKGURL="$(eget --list --latest https://www.hamrick.com/alternate-versions.html "$file*.$pkgtype" )" || fatal "Can't get package URL"
35 36

install_pkgurl