Commit 038eb8da authored by CatSema's avatar CatSema Committed by Vitaly Lipatov

epm play rudesktop: fix package name logic and URL handling

Commented out old package name logic, simplified to use rudesktop-alt only for Alt Linux, kept rudesktop for others. Updated PKGURL to match provided download links.
parent 4b584d37
......@@ -6,26 +6,29 @@ VERSION="$2"
DESCRIPTION="RuDesktop for Linux from the official site"
URL="https://rudesktop.ru/"
pkgname="$PKGNAME"
. $(dirname $0)/common.sh
#case "$(epm print info -s)" in
# astra)
# PKGNAME=rudesktop-astra
# ;;
# alt)
# PKGNAME=rudesktop-alt
# ;;
# osnova)
# PKGNAME=rudesktop-osnova
# ;;
#esac
# FIXME: uses global epm
# change package name (like on the site)
case "$(epm print info -s)" in
astra)
PKGNAME=rudesktop-astra
;;
alt)
PKGNAME=rudesktop-alt
;;
osnova)
PKGNAME=rudesktop-osnova
*)
PKGNAME=rudesktop
;;
esac
. $(dirname $0)/common.sh
warn_version_is_not_supported
case "$(epm print info -p)" in
rpm)
pkgtype=rpm
......@@ -35,7 +38,12 @@ case "$(epm print info -p)" in
;;
esac
PKGURL="https://rudesktop.ru/download/$PKGNAME-amd64.$pkgtype"
if [ "$VERSION" != "*" ] ; then
PKGURL="https://storage.rudesktop.ru/download/$PKGNAME-$VERSION-amd64.$pkgtype"
else
PKGURL="$(eget --list --latest https://rudesktop.ru/downloads/ "$PKGNAME-*-amd64.$pkgtype")"
fi
install_pkgurl
echo
......@@ -44,5 +52,4 @@ echo "Note: run
to enable and start $PKGNAME system service
Use
/usr/bin/rudesktop --rendezvous DOMAIN
to set the domain if needed.
"
to set the domain if needed."
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