cuda-z.sh 514 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
#!/bin/sh

DESCRIPTION="CUDA-Z from the official site"

PKGNAME=cuda-z

SUPPORTEDARCHES="x86_64 x86"

. $(dirname $0)/common.sh

arch="$(epm print info -a)"
case "$arch" in
    x86_64)
        file="CUDA-Z-*-64bit.run/download"
        ;;
    x86)
        file="CUDA-Z-*-32bit.run/download"
        ;;
    *)
        fatal "$arch arch is not supported"
        ;;
esac

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

PKGURL="$(eget --list --latest https://cuda-z.sourceforge.net/ "$file" )"
epm pack --install $PKGNAME "$PKGURL"