#!/bin/sh

PKGNAME=64Gram
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION="64Gram (unofficial Telegram Desktop)"
TIPS="Run 'epm play 64gram=<version>' to install the version of the 64Gram Telegram client."

. $(dirname $0)/common.sh

PKGURL=$(epm tool eget --list --latest https://github.com/TDesktop-x64/tdesktop/releases "${PKGNAME}_${VERSION}_linux.zip") #"
[ -n "$PKGURL" ] || fatal "Can't get package URL"

epm --install pack $PKGNAME "$PKGURL"