Commit e89b0e36 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: add liteide support

parent a1505da3
#!/bin/sh
PKGNAME=liteide
SUPPORTEDARCHES="x86_64 x86"
DESCRIPTION="LiteIDE is a simple, open source, cross-platform Go IDE. From the official site"
. $(dirname $0)/common.sh
archbit="$($DISTRVENDOR -b)"
PKGURL=$(epm tool eget --list --latest https://github.com/visualfc/liteide/releases "liteidex*.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|liteidex-|')"
epm tool eget -O "$name" "$PKGURL"
epm install --repack "$name"
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
PRODUCT=liteide
. $(dirname $0)/common.sh
subst "s|^Group:.*|Group: Development/Tools|" $SPEC
subst "s|^License: unknown$|License: LGPLv2|" $SPEC
subst "s|^URL:.*|URL: http://liteide.org/en/|" $SPEC
subst "s|^Summary:.*|Summary: LiteIDE is a simple, open source, cross-platform Go IDE|" $SPEC
move_to_opt /liteide
for i in gocode gomodifytags gotools liteide ; do
add_bin_link_command $i $PRODUCTDIR/bin/$i
done
install_file $PRODUCTDIR/share/liteide/welcome/images/liteide.png /usr/share/pixmaps/$PRODUCT.png
# create desktop file
mkdir -p $BUILDROOT/usr/share/applications/
cat <<EOF >$BUILDROOT/usr/share/applications/$PRODUCT.desktop
[Desktop Entry]
Type=Application
Name=liteide
Exec=liteide
Icon=liteide
Comment=LiteIDE is a simple, open source, cross-platform Go IDE.
Terminal=false
Categories=Development;
Name[zh_CN]=liteide
EOF
pack_file /usr/share/applications/$PRODUCT.desktop
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