summaryrefslogtreecommitdiffstats
path: root/development/pycharm/pycharm.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/pycharm/pycharm.SlackBuild')
-rw-r--r--development/pycharm/pycharm.SlackBuild30
1 files changed, 19 insertions, 11 deletions
diff --git a/development/pycharm/pycharm.SlackBuild b/development/pycharm/pycharm.SlackBuild
index 87ed870b19..d73da05139 100644
--- a/development/pycharm/pycharm.SlackBuild
+++ b/development/pycharm/pycharm.SlackBuild
@@ -1,8 +1,8 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for pycharm
-# Copyright 2015-2020 Dimitris Zlatanidis Orestiada, Greece
+# Copyright 2015-2024 Dimitris Zlatanidis Orestiada, Greece
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,15 +22,26 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=pycharm
EDITION=community
-VERSION=${VERSION:-2019.3.2}
+VERSION=${VERSION:-2024.1.241.14494.241}
+SRCVER=$( echo $VERSION | cut -c1-6 )
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
ARCH=noarch
-CWD=$(pwd)
+# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
+# the name of the created package would be, and then exit. This information
+# could be useful to other scripts.
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -54,9 +65,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$EDITION-$VERSION
-tar xvf $CWD/$PRGNAM-$EDITION-$VERSION.tar.gz
-cd $PRGNAM-$EDITION-$VERSION
+rm -rf $PRGNAM-$EDITION-$SRCVER
+tar xvf $CWD/$PRGNAM-$EDITION-$SRCVER.tar.gz
+cd $PRGNAM-$EDITION-$SRCVER
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -68,9 +79,6 @@ find -L . \
mkdir -p $PKG/opt/$PRGNAM
cp -rf * $PKG/opt/$PRGNAM
-# Remove unused
-rm -rf $PKG/opt/$PRGNAM/lib/libpty/win $PKG/opt/$PRGNAM/lib/libpty/macosx
-
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
@@ -97,4 +105,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE