liteide.sh 624 Bytes
Newer Older
1 2 3 4
#!/bin/sh

PKGNAME=liteide
SUPPORTEDARCHES="x86_64 x86"
5
VERSION="$2"
6 7 8 9
DESCRIPTION="LiteIDE is a simple, open source, cross-platform Go IDE. From the official site"

. $(dirname $0)/common.sh

10
archbit="$(epm print info -b)"
11

12
PKGURL=$(epm tool eget --list --latest https://github.com/visualfc/liteide/releases "liteidex$VERSION.linux$archbit-qt5*-system.tar.gz") #"
13 14 15 16 17 18 19
[ -n "$PKGURL" ] || fatal "Can't get package URL"

# cd to tmp dir
PKGDIR=$(mktemp -d)
trap "rm -fr $PKGDIR" EXIT
cd $PKGDIR || fatal

20
name="$(basename "$PKGURL" | sed -e 's|liteidex|liteide-|')"
21 22 23
epm tool eget -O "$name" "$PKGURL"

epm install --repack "$name"