netbeans.sh 699 Bytes
Newer Older
1 2 3 4
#!/bin/sh

PKGNAME=apache-netbeans
#SUPPORTEDARCHES="x86_64"
5
VERSION="$2"
6
DESCRIPTION="Apache NetBeans from the official site"
7 8 9

. $(dirname $0)/common.sh

10 11 12 13
if [ "$VERSION" = "*" ] ; then
    VERSION="$(epm tool eget --list https://dlcdn.apache.org/netbeans/netbeans-installers/* | tail -n1 | xargs basename)"
fi

14 15 16
pkgtype=$(epm print info -p)
case $pkgtype in
    rpm)
17
        mask="apache-netbeans-$VERSION-*.noarch.rpm"
18 19
        ;;
    *)
20
        mask="apache-netbeans_${VERSION}-*_all.deb"
21 22 23
        ;;
esac

24 25 26
# epm install "https://dlcdn.apache.org/netbeans/netbeans-installers/$VERSION/$mask"
PKGURL="https://archive.apache.org/dist/netbeans/netbeans-installers/$VERSION/$mask"
epm install "$PKGURL"