summaryrefslogtreecommitdiffstats
path: root/development/vscodium/vscodium.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/vscodium/vscodium.SlackBuild')
-rw-r--r--development/vscodium/vscodium.SlackBuild19
1 files changed, 13 insertions, 6 deletions
diff --git a/development/vscodium/vscodium.SlackBuild b/development/vscodium/vscodium.SlackBuild
index c630053dbd..1ae7f45ffc 100644
--- a/development/vscodium/vscodium.SlackBuild
+++ b/development/vscodium/vscodium.SlackBuild
@@ -1,8 +1,8 @@
-#!/bin/sh
+#!/bin/bash
# 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
@@ -22,10 +22,13 @@
# 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=vscodium
-VERSION=${VERSION:-1.54.2}
+VERSION=${VERSION:-1.79.0.23159}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -35,13 +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
-CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -74,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
@@ -87,4 +94,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