summaryrefslogtreecommitdiffstats
path: root/development/nwjs/nwjs.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/nwjs/nwjs.SlackBuild')
-rw-r--r--development/nwjs/nwjs.SlackBuild23
1 files changed, 17 insertions, 6 deletions
diff --git a/development/nwjs/nwjs.SlackBuild b/development/nwjs/nwjs.SlackBuild
index 8553002a28..950b4c70a5 100644
--- a/development/nwjs/nwjs.SlackBuild
+++ b/development/nwjs/nwjs.SlackBuild
@@ -1,8 +1,9 @@
-#!/bin/sh
-
+#!/bin/bash
# Slackware build script for nwjs
-
# Copyright 2017 Rodrigo Gimenez <estrod[at]zoho[dot]com>
+# Brian Cox <hamslackbuild@comcast.net>
+
+# Copyright 2023
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,10 +24,13 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=nwjs
-VERSION=${VERSION:-0.24.2}
+VERSION=${VERSION:-0.63.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -36,7 +40,14 @@ if [ -z "$ARCH" ]; then
esac
fi
-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}
@@ -79,4 +90,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
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