#!/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