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