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

epm play icq: get latest version from snapcraft.io

parent 292470b2
...@@ -6,13 +6,9 @@ DESCRIPTION="ICQ for Linux from the official site" ...@@ -6,13 +6,9 @@ DESCRIPTION="ICQ for Linux from the official site"
. $(dirname $0)/common.sh . $(dirname $0)/common.sh
# TODO: VERSION=$(eget -O- -H Snap-Device-Series:16 https://api.snapcraft.io/v2/snaps/info/icq-im | epm --inscript tool json -b | grep version | head -n1 | sed -e 's|.*"\([0-9.]*\)".*|\1|') || fatal "Can't get current version" #'
# $ curl -H Snap-Device-Series:16 https://api.snapcraft.io/v2/snaps/info/icq-im #VERSION="10.0.16100"
VERSION="10.0" #10.0.11121
PKGURL="https://icq-www.hb.bizmrg.com/linux/x64/icq.tar.xz" #PKGURL="https://icq-www.hb.bizmrg.com/linux/x64/icq.tar.xz"
PKGFILE="/tmp/$PKGNAME-$VERSION.tar.xz" PKGURL="https://hb.bizmrg.com/icq-www/linux/x64/packages/$VERSION/icq-${VERSION}_64bit.tar.xz"
epm install --repack "$PKGURL"
epm tool eget -O $PKGFILE $PKGURL || exit
epm install --repack "$PKGFILE" || exit
...@@ -49,6 +49,7 @@ EOF ...@@ -49,6 +49,7 @@ EOF
pack_file /usr/share/applications/$PRODUCT.desktop pack_file /usr/share/applications/$PRODUCT.desktop
# https://hb.bizmrg.com/icq-www/linux/x64/packages/10.0.13286/icq.png
install_file https://dashboard.snapcraft.io/site_media/appmedia/2020/04/icq_copy.png /usr/share/pixmaps/$PRODUCT.png install_file https://dashboard.snapcraft.io/site_media/appmedia/2020/04/icq_copy.png /usr/share/pixmaps/$PRODUCT.png
subst "s|.*/opt/icq/unittests.*||" $SPEC subst "s|.*/opt/icq/unittests.*||" $SPEC
......
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