diff options
Diffstat (limited to 'development/vscode-bin/vscode-bin.SlackBuild')
-rw-r--r-- | development/vscode-bin/vscode-bin.SlackBuild | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/development/vscode-bin/vscode-bin.SlackBuild b/development/vscode-bin/vscode-bin.SlackBuild index 890f8296c6..c543e3cce1 100644 --- a/development/vscode-bin/vscode-bin.SlackBuild +++ b/development/vscode-bin/vscode-bin.SlackBuild @@ -1,8 +1,8 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for vscode-bin -# Copyright 2019 Willy Sudiarto Raharjo <willysr@slackbuilds.org> +# Copyright 2019-2024 Willy Sudiarto Raharjo <willysr@slackbuilds.org> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,12 +22,15 @@ # 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=vscode-bin SRCNAM=code-stable -VERSION=${VERSION:-1.39.1} -SRCVER=1570750623 +VERSION=${VERSION:-1.88.0} +SRCVER=1712150767 BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -37,7 +40,11 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +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} @@ -48,7 +55,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf VSCode-linux-x64 -tar xvf $CWD/$SRCNAM-$SRCVER.tar.gz +tar xvf $CWD/$SRCNAM-x64-$SRCVER.tar.gz cd VSCode-linux-x64 chown -R root:root . find -L . \ @@ -79,4 +86,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 |