diff options
Diffstat (limited to 'development/vscodium/vscodium.SlackBuild')
-rw-r--r-- | development/vscodium/vscodium.SlackBuild | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/development/vscodium/vscodium.SlackBuild b/development/vscodium/vscodium.SlackBuild index 3ae5bb599a..1ae7f45ffc 100644 --- a/development/vscodium/vscodium.SlackBuild +++ b/development/vscodium/vscodium.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for vscodium -# Copyright 2021 rc-05 <rc23@email.it> +# Copyright 2022-2023 rc-05 <rc_o5@protonmail.com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=vscodium -VERSION=${VERSION:-1.54.2} +VERSION=${VERSION:-1.79.0.23159} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -38,20 +38,17 @@ if [ -z "$ARCH" ]; then esac fi +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + # Bail out when building the Slackbuild on non-x86_64 arch. if [ "$ARCH" != "x86_64" ]; then echo "Unsupported on $ARCH: last version available is 1.35.2" exit -1 fi -# 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} @@ -84,7 +81,7 @@ mkdir -p $PKG/usr/share/icons/hicolor/1024x1024/apps cp $PKG/opt/$PRGNAM/resources/app/resources/linux/code.png $PKG/usr/share/icons/hicolor/1024x1024/apps cd $PKG/usr/bin -ln -s /opt/$PRGNAM/bin/codium . +ln -s ../../opt/$PRGNAM/bin/codium . 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 |