unifiedremote.sh 698 Bytes
Newer Older
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 30 31 32 33 34 35 36
#!/bin/sh

PKGNAME=urserver

SUPPORTEDARCHES="x86_64 x86"
DESCRIPTION="Unified Remote Server from the official site"
URL="https://www.unifiedremote.com/"

. $(dirname $0)/common.sh

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"

repack=''
[ "$(epm print info -s)" = "alt" ] && repack='--repack'

epm install $repack "$PKGURL"