Commit e82b1159 authored by Vitaly Lipatov's avatar Vitaly Lipatov

add epm play jetbrains-toolbox

parent f7acc6a5
#!/bin/sh
PKGNAME=jetbrains-toolbox
SUPPORTEDARCHES="x86_64"
DESCRIPTION="JetBrains Toolbox App from the official site"
. $(dirname $0)/common.sh
# https://github.com/nagygergo/jetbrains-toolbox-install/blob/master/jetbrains-toolbox.sh
URL=$(epm tool eget -O- "https://data.services.jetbrains.com/products?code=TBA&release.type=eap%2Crc%2Crelease&fields=distributions%2Clink%2Cname%2Creleases" | epm --inscript tool json -b | grep '0,"releases",0,"downloads","linux","link"' | sed -e 's|.*[[:space:]]||')
#https://download.jetbrains.com/toolbox/jetbrains-toolbox-1.25.12627.tar.gz
# eval for drop quotes
eval epm install $URL
echo
echo "Run jetbrains-toolbox under user to install."
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
PRODUCT=jetbrains-toolbox
PRODUCTCUR=jetbrains-toolbox
PRODUCTDIR=/opt/$PRODUCTCUR
. $(dirname $0)/common.sh
subst "s|^Group:.*|Group: Development/C|" $SPEC
#subst "s|^License: unknown$|License: GPLv2|" $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 '1iAutoReq:no' $SPEC
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