summaryrefslogtreecommitdiffstats
path: root/development/vstudio/vstudio.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/vstudio/vstudio.SlackBuild')
-rw-r--r--development/vstudio/vstudio.SlackBuild29
1 files changed, 21 insertions, 8 deletions
diff --git a/development/vstudio/vstudio.SlackBuild b/development/vstudio/vstudio.SlackBuild
index fafa648c8e..6d644ad012 100644
--- a/development/vstudio/vstudio.SlackBuild
+++ b/development/vstudio/vstudio.SlackBuild
@@ -1,8 +1,8 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for vstudio
-# Copyright 2015 Antonio Leal, Lisbon, Portugal
+# Copyright 2023 Antonio Leal, Porto Salvo, Oeiras, Portugal
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,19 +22,28 @@
# 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=vstudio
-VERSION=${VERSION:-8.3}
+VERSION=${VERSION:-13.7}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
case "$( uname -m )" in
- i?86) ARCH=i586 ; BASENAME=${BASENAME:-vstudio_8_lin} ;;
- x86_64) ARCH=x86_64 ; BASENAME=${BASENAME:-vstudio_x64_8_lin} ;;
+ x86_64) ARCH=x86_64 ; BASENAME=${BASENAME:-vstudio_x64_13_lin} ;;
*) echo "Package for $(uname -m) architecture is not available." ; exit 1 ;;
esac
set -e
-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}
@@ -42,7 +51,11 @@ OUTPUT=${OUTPUT:-/tmp}
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $PKG
-ar p $CWD/$BASENAME.deb data.tar.xz | tar xvJ
+if [ -e $CWD/$BASENAME.deb ]; then
+ ar p $CWD/$BASENAME.deb data.tar.xz | tar xvJ
+else
+ ar p $CWD/vstudio_x64_lin-deb data.tar.xz | tar xvJ
+fi
chown -R root:root .
find -L . \
@@ -64,4 +77,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