Commit d4b272ca authored by Ivan Mazhukin's avatar Ivan Mazhukin Committed by Vitaly Lipatov

epm play netbeans: fix download (eterbug #17865)

parent e1861707
......@@ -2,28 +2,20 @@
PKGNAME=apache-netbeans
SKIPREPACK=1
SUPPORTEDARCHES=""
SUPPORTEDARCHES="x86_64 aarch64"
VERSION="$2"
DESCRIPTION="Apache NetBeans from the official site"
URL="https://netbeans.apache.org"
. $(dirname $0)/common.sh
if [ "$VERSION" = "*" ] ; then
VERSION="$(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}-*_all.deb"
;;
esac
arch=$(epm print info --debian-arch)
# epm install "https://dlcdn.apache.org/netbeans/netbeans-installers/$VERSION/$mask"
PKGURL="https://archive.apache.org/dist/netbeans/netbeans-installers/$VERSION/$mask"
if [ "$VERSION" = "*" ] ; then
PKGURL=$(eget --list --latest https://installers.friendsofapachenetbeans.org/ "apache-netbeans_*_$arch.deb")
else
PKGURL="https://archive.apache.org/dist/netbeans/netbeans-installers/$VERSION/apache-netbeans_${VERSION}-*_all.deb"
fi
install_pkgurl
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