Commit 2d010dd3 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play liteide: move repacking to pack.d

parent d3d574dc
#!/bin/sh
TAR="$1"
RETURNTARNAME="$2"
#VERSION="$3"
. $(dirname $0)/common.sh
PKGNAME="$(basename "$TAR" | sed -e 's|liteidex|liteide-|')"
mv -v $TAR $PKGNAME
return_tar $PKGNAME
......@@ -4,20 +4,13 @@ PKGNAME=liteide
SUPPORTEDARCHES="x86_64 x86"
VERSION="$2"
DESCRIPTION="LiteIDE is a simple, open source, cross-platform Go IDE. From the official site"
URL="https://github.com/visualfc/liteide"
. $(dirname $0)/common.sh
archbit="$(epm print info -b)"
PKGURL=$(epm tool eget --list --latest https://github.com/visualfc/liteide/releases "liteidex$VERSION.linux$archbit-qt5*-system.tar.gz") #"
PKGURL=$(eget --list --latest https://github.com/visualfc/liteide/releases "liteidex$VERSION.linux$archbit-qt5*-system.tar.gz") #"
[ -n "$PKGURL" ] || fatal "Can't get package URL"
# cd to tmp dir
PKGDIR=$(mktemp -d)
trap "rm -fr $PKGDIR" EXIT
cd $PKGDIR || fatal
name="$(basename "$PKGURL" | sed -e 's|liteidex|liteide-|')"
epm tool eget -O "$name" "$PKGURL"
epm install --repack "$name"
epm pack --install $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