Commit ce10e39c authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm repack jetbrains-toolbox: rewrite install script (ALT bug 45870)

parent dc7cbe63
......@@ -15,11 +15,3 @@ URL=$(epm tool eget -O- "https://data.services.jetbrains.com/products?code=TBA&r
# eval for drop quotes
eval epm pack --install $PKGNAME $URL
echo
echo "Run jetbrains-toolbox under user to install."
#if [ ! -r /dev/fuse ] ; then
# echo
# echo "Add the user $USER to fuse group"
# echo "For example. run # usermod -aG fuse $USER"
#fi
......@@ -15,11 +15,19 @@ subst "s|^Group:.*|Group: Development/C|" $SPEC
subst "s|^URL:.*|URL: https://www.jetbrains.com/ru-ru/toolbox-app/|" $SPEC
subst "s|^Summary:.*|Summary: JetBrains Toolbox App|" $SPEC
#move_to_opt "/$PRODUCT-*"
#add_bin_link_command $PRODUCT
#subst '1iAutoProv:no' $SPEC
# ldd: ERROR: /tmp/jetbrains-toolbox-1.25.12627/jetbrains-toolbox: failed to find the program interpreter
#subst 's|^AutoReq:.*|AutoReq:no|' $SPEC
# overwrite default exec script
cat <<EOF >usr/bin/$PRODUCT
#!/bin/sh
BINDIR=~/.local/share/JetBrains/Toolbox/bin
if [ ! -L \$BINDIR ] ; then
mkdir -p \$(dirname \$BINDIR)
rm -rf \$BINDIR
ln -s $PRODUCTDIR \$BINDIR
fi
cd \$BINDIR
exec ./$PRODUCT "\$@"
EOF
add_requires java-openjdk
exit
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