Commit 090b79ca authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play netbeans: fix install latest version (ALT bug 46505)

parent 4ff88c2b
......@@ -3,18 +3,22 @@
PKGNAME=apache-netbeans
#SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION="Apache NetBeans 17 from the official site"
DESCRIPTION="Apache NetBeans from the official site"
. $(dirname $0)/common.sh
if [ "$VERSION" = "*" ] ; then
VERSION="$(epm tool eget --list https://dlcdn.apache.org/netbeans/netbeans-installers/* | tail -n1 | xargs basename)"
fi
pkgtype=$(epm print info -p)
case $pkgtype in
rpm)
mask="apache-netbeans-$VERSION.noarch.rpm"
mask="apache-netbeans-$VERSION-*.noarch.rpm"
;;
*)
mask="apache-netbeans_${VERSION}_all.deb"
mask="apache-netbeans_${VERSION}-*_all.deb"
;;
esac
epm install "https://dlcdn.apache.org/netbeans/netbeans-installers/17/$mask"
epm install "https://dlcdn.apache.org/netbeans/netbeans-installers/$VERSION/$mask"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment