Commit 0cf71662 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epmn play telegram: fix beta support

parent 97317205
......@@ -6,7 +6,7 @@ SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION="Telegram client from the official site"
URL="https://github.com/telegramdesktop/tdesktop"
TIPS="Run 'epm play telegram-desktop=beta' to install beta version of the Telegram client. Run 'epm play telegram-desktop version' to install the version of the Telegram client."
TIPS="Run 'epm play telegram=beta' to install beta version of the Telegram client. Run 'epm play telegram version' to install the version of the Telegram client."
. $(dirname $0)/common.sh
......@@ -18,10 +18,15 @@ if [ "$VERSION" = "*" ] ; then
if ! is_glibc_enough 2.28 ; then
fatal "glibc is too old, upgrade your system."
fi
else
VERSION="$VERSION*"
fi
PKGURL=$(eget --list --latest https://github.com/telegramdesktop/tdesktop/releases "tsetup.$VERSION*.tar.xz") #"
PKGURL=$(eget --list --latest https://github.com/telegramdesktop/tdesktop/releases "tsetup.$VERSION.tar.xz") #"
[ -n "$PKGURL" ] || fatal "Can't get package URL"
# override PKGNAME for beta version
echo "$PKGURL" | grep -q "beta.tar.xz" && override_pkgname "$BASEPKGNAME-beta"
epm --install pack $PKGNAME "$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