Commit f4125870 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: add clion, idea, phpstorm, webstorm

parent b71b12ea
#!/bin/sh
PKGNAME=CLion
SUPPORTEDARCHES="x86_64 aarch64"
VERSION="$2"
DESCRIPTION="CLion - A cross-platform IDE for C and C++ from the official site"
URL="https://www.jetbrains.com/clion/"
. $(dirname $0)/common-jetbrains.sh
PKGURL="$(get_jetbrains_pkgurl CL cpp)"
epm install $PKGURL
#!/bin/sh
PKGNAME=ideaIU
SUPPORTEDARCHES="x86_64 aarch64"
VERSION="$2"
DESCRIPTION="IntelliJ IDEA Ultimate - The Leading Java and Kotlin IDE from the official site"
URL="https://www.jetbrains.com/idea/"
. $(dirname $0)/common-jetbrains.sh
PKGURL="$(get_jetbrains_pkgurl IIU idea)"
epm install $PKGURL
#!/bin/sh
PKGNAME=PhpStorm
SUPPORTEDARCHES="x86_64 aarch64"
VERSION="$2"
DESCRIPTION="PhpStorm - The Lightning-Smart PHP IDE from the official site"
URL="https://www.jetbrains.com/phpstorm/"
. $(dirname $0)/common-jetbrains.sh
PKGURL="$(get_jetbrains_pkgurl PS webide)"
epm install $PKGURL
#!/bin/sh
PKGNAME=WebStorm
SUPPORTEDARCHES="x86_64 aarch64"
VERSION="$2"
DESCRIPTION="WebStorm - The smartest JavaScript IDE from the official site"
URL="https://www.jetbrains.com/webstorm/"
. $(dirname $0)/common-jetbrains.sh
PKGURL="$(get_jetbrains_pkgurl WS webstorm)"
epm install $PKGURL
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
PRODUCT=clion
PRODUCTCUR=CLion
. $(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/clion/|" $SPEC
subst "s|^Summary:.*|Summary: CLion - A cross-platform IDE for C and C++|" $SPEC
move_to_opt "/$PRODUCT-*"
add_bin_link_command $PRODUCT $PRODUCTDIR/bin/$PRODUCT.sh
add_bin_link_command $PRODUCTCUR $PRODUCT
# create desktop file
mkdir -p $BUILDROOT/usr/share/applications/
cat <<EOF >$BUILDROOT/usr/share/applications/$PRODUCT.desktop
[Desktop Entry]
Version=1.0
Type=Application
Name=CLion
Comment=A cross-platform IDE for C and C++
Exec=$PRODUCT %f
Icon=$PRODUCT
Terminal=false
StartupNotify=true
StartupWMClass=jetbrains-clion
Categories=Development;IDE
EOF
pack_file /usr/share/applications/$PRODUCT.desktop
mkdir -p $BUILDROOT/usr/share/pixmaps
install_file $PRODUCTDIR/bin/$PRODUCT.png /usr/share/pixmaps/
install_file $PRODUCTDIR/bin/$PRODUCT.svg /usr/share/pixmaps/
# 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/
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
PRODUCT=phpstorm
PRODUCTCUR=PhpStorm
. $(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/phpstorm/|" $SPEC
subst "s|^Summary:.*|Summary: PhpStorm - The Lightning-Smart PHP IDE|" $SPEC
move_to_opt "/$PRODUCTCUR-*"
add_bin_link_command $PRODUCT $PRODUCTDIR/bin/$PRODUCT.sh
add_bin_link_command $PRODUCTCUR $PRODUCT
# create desktop file
mkdir -p $BUILDROOT/usr/share/applications/
cat <<EOF >$BUILDROOT/usr/share/applications/$PRODUCT.desktop
[Desktop Entry]
Version=1.0
Type=Application
Name=PhpStorm
Comment=The Lightning-Smart PHP IDE
Exec=$PRODUCT %f
Icon=$PRODUCT
Terminal=false
StartupNotify=true
StartupWMClass=jetbrains-phpstorm
Categories=Development;IDE
EOF
pack_file /usr/share/applications/$PRODUCT.desktop
mkdir -p $BUILDROOT/usr/share/pixmaps
install_file $PRODUCTDIR/bin/$PRODUCT.png /usr/share/pixmaps/
install_file $PRODUCTDIR/bin/$PRODUCT.svg /usr/share/pixmaps/
# 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/
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
PRODUCT=webstorm
PRODUCTCUR=WebStorm
. $(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/webstorm/|" $SPEC
subst "s|^Summary:.*|Summary: WebStorm - The smartest JavaScript IDE|" $SPEC
move_to_opt "/$PRODUCTCUR-*"
add_bin_link_command $PRODUCT $PRODUCTDIR/bin/$PRODUCT.sh
add_bin_link_command $PRODUCTCUR $PRODUCT
# create desktop file
mkdir -p $BUILDROOT/usr/share/applications/
cat <<EOF >$BUILDROOT/usr/share/applications/$PRODUCT.desktop
[Desktop Entry]
Version=1.0
Type=Application
Name=WebStorm
Comment=The smartest JavaScript IDE
Exec=$PRODUCT %f
Icon=$PRODUCT
Terminal=false
StartupNotify=true
StartupWMClass=jetbrains-webstorm
Categories=Development;IDE
EOF
pack_file /usr/share/applications/$PRODUCT.desktop
mkdir -p $BUILDROOT/usr/share/pixmaps
install_file $PRODUCTDIR/bin/$PRODUCT.png /usr/share/pixmaps/
install_file $PRODUCTDIR/bin/$PRODUCT.svg /usr/share/pixmaps/
# 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/
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
PRODUCT=idea
PRODUCTCUR=idea-IU
. $(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/idea/|" $SPEC
subst "s|^Summary:.*|Summary: IntelliJ IDEA – the Leading Java and Kotlin IDE|" $SPEC
move_to_opt "/$PRODUCTCUR-*"
add_bin_link_command $PRODUCT $PRODUCTDIR/bin/$PRODUCT.sh
add_bin_link_command $PRODUCTCUR $PRODUCT
# create desktop file
mkdir -p $BUILDROOT/usr/share/applications/
cat <<EOF >$BUILDROOT/usr/share/applications/$PRODUCT.desktop
[Desktop Entry]
Version=1.0
Type=Application
Name=IntelliJ IDEA
Comment=The Leading Java and Kotlin IDE
Exec=$PRODUCT %f
Icon=$PRODUCT
Terminal=false
StartupNotify=true
StartupWMClass=jetbrains-idea
Categories=Development;IDE
EOF
pack_file /usr/share/applications/$PRODUCT.desktop
mkdir -p $BUILDROOT/usr/share/pixmaps
install_file $PRODUCTDIR/bin/$PRODUCT.png /usr/share/pixmaps/
install_file $PRODUCTDIR/bin/$PRODUCT.svg /usr/share/pixmaps/
# 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