Commit c199d92e authored by CatSema's avatar CatSema Committed by Vitaly Lipatov

epm play: add openide

parent accf908a
#!/bin/sh
PKGNAME=openIDE
SUPPORTEDARCHES="x86_64 aarch64"
VERSION="$2"
DESCRIPTION="openIDE - Free IDE based on IntelliJ IDEA Community Edition"
URL="https://openide.ru/"
. $(dirname $0)/common.sh
arch=$(epm print info -a)
case "$arch" in
x86_64)
arch=""
;;
arm64 | aarch64)
arch="-aarch64"
;;
esac
if [ "$VERSION" = "*" ]; then
VERSION=$(eget -q -O- https://download.openide.ru/ | grep -B1 "openIDE.*tar\.gz" | grep -o "[0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+" | tail -n1)
fi
PKGURL="https://download.openide.ru/$VERSION/openIDE-$VERSION${arch}.tar.gz"
install_pkgurl
#!/bin/sh -x
BUILDROOT="$1"
SPEC="$2"
PRODUCT=openide
PRODUCTCUR=openIDE
. $(dirname $0)/common.sh
subst "s|^Group:.*|Group: Development/Tools|" $SPEC
subst "s|^URL:.*|URL: https://openide.ru/|" $SPEC
subst "s|^Summary:.*|Summary: openIDE - Free IDE based on IntelliJ IDEA Community Edition|" $SPEC
move_to_opt "/$PRODUCTCUR-*"
add_bin_link_command $PRODUCT $PRODUCTDIR/bin/$PRODUCT.sh
add_bin_link_command $PRODUCTCUR $PRODUCT
wmClass="$(get_json_value $PRODUCTDIR/product-info.json '["launch",0,"startupWmClass"]')"
[ -n "$wmClass" ] || wmClass="$PRODUCT"
cat <<EOF | create_file /usr/share/applications/$wmClass.desktop
[Desktop Entry]
Version=1.0
Type=Application
Name=openIDE
Comment=Free IDE based on IntelliJ IDEA Community Edition
Exec=$PRODUCT %f
Icon=$PRODUCT
Terminal=false
StartupNotify=true
StartupWMClass=$wmClass
Categories=Development;IDE;
EOF
install_file $PRODUCTDIR/bin/$PRODUCT.png /usr/share/pixmaps/$PRODUCT.png
#install_file $PRODUCTDIR/bin/$PRODUCT.svg /usr/share/icons/hicolor/scalable/apps/$PRODUCT.svg
subst 's|%dir "'$PRODUCTDIR'/"||' $SPEC
subst 's|%dir "'$PRODUCTDIR'/bin/"||' $SPEC
subst 's|%dir "'$PRODUCTDIR'/lib/"||' $SPEC
subst 's|%dir "'$PRODUCTDIR'/plugins/"||' $SPEC
pack_dir $PRODUCTDIR/
pack_dir $PRODUCTDIR/bin/
pack_dir $PRODUCTDIR/lib/
pack_dir $PRODUCTDIR/plugins/
add_libs_requires
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