unifiedremote.sh 659 Bytes
Newer Older
1 2 3 4
#!/bin/sh

PKGNAME=urserver
SUPPORTEDARCHES="x86_64 x86"
5
VERSION="$2"
6 7 8 9 10
DESCRIPTION="Unified Remote Server from the official site"
URL="https://www.unifiedremote.com/"

. $(dirname $0)/common.sh

11 12
warn_version_is_not_supported

13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
pkgtype=$(epm print info -p)
arch="$(epm print info -a)"
case "$pkgtype-$arch" in
    rpm-x86_64)
        file="linux-x64-rpm"
        ;;
    rpm-x86)
        file="linux-x86-rpm"
        ;;
    *-x86)
        file="linux-x86-deb"
        ;;
    *-x86_64)
        file="linux-x64-deb"
        ;;
    *)
        fatal "$arch arch is not supported"
        ;;
esac

PKGURL="https://www.unifiedremote.com/download/$file"

35
install_pkgurl