Commit 50b6d867 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: add DataGrip

parent d04c938b
#!/bin/sh
PKGNAME=datagrip
SUPPORTEDARCHES="x86_64 aarch64"
VERSION="$2"
DESCRIPTION="DataGrip - A powerful cross-platform tool for relational and NoSQL databases"
URL="https://www.jetbrains.com/datagrip/"
. $(dirname $0)/common-jetbrains.sh
PKGURL="$(get_jetbrains_pkgurl DG datagrip)"
install_pkgurl
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
PRODUCT=datagrip
PRODUCTCUR=DataGrip
. $(dirname $0)/common.sh
subst "s|^Group:.*|Group: Development/Tools|" $SPEC
#subst "s|^License: unknown$|License: GPLv2|" $SPEC
subst "s|^URL:.*|URL: https://www.jetbrains.com/datagrip/|" $SPEC
subst "s|^Summary:.*|Summary: DataGrip - A powerful cross-platform tool for relational and NoSQL databases|" $SPEC
move_to_opt "/$PRODUCTCUR-*"
add_bin_link_command $PRODUCT $PRODUCTDIR/bin/$PRODUCT.sh
add_bin_link_command $PRODUCTCUR $PRODUCT
cat <<EOF | create_file /usr/share/applications/$PRODUCT.desktop
[Desktop Entry]
Version=1.0
Type=Application
Name=DataGrip
Comment=A powerful cross-platform tool for relational and NoSQL databases
Exec=$PRODUCT %f
Icon=$PRODUCT
Terminal=false
StartupNotify=true
StartupWMClass=jetbrains-datagrip
Categories=Development;IDE
EOF
install_file $PRODUCTDIR/bin/$PRODUCT.png /usr/share/pixmaps/$PRODUCT.png
install_file $PRODUCTDIR/bin/$PRODUCT.svg /usr/share/pixmaps/$PRODUCT.svg
exit
# kind of hack
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/
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