summaryrefslogtreecommitdiffstats
path: root/libraries/bctoolbox/bctoolbox.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/bctoolbox/bctoolbox.SlackBuild')
-rw-r--r--libraries/bctoolbox/bctoolbox.SlackBuild22
1 files changed, 17 insertions, 5 deletions
diff --git a/libraries/bctoolbox/bctoolbox.SlackBuild b/libraries/bctoolbox/bctoolbox.SlackBuild
index d9c72a002d..cb44b67342 100644
--- a/libraries/bctoolbox/bctoolbox.SlackBuild
+++ b/libraries/bctoolbox/bctoolbox.SlackBuild
@@ -1,9 +1,11 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for bctoolbox
# Was written by Euan Thoms <euan at potensol dot com>
+# and amended by Sebastian Arcus <s.arcus at open-t dot co dot uk>
# Copyright 2017 Euan Thoms United Kingdom
+# Copyright 2024 Sebastian Arcus
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,11 +25,14 @@
# 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=bctoolbox
-VERSION=${VERSION:-0.6.0}
+VERSION=${VERSION:-5.2.2}
SRCDIRNAM=${PRGNAM}-${VERSION}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -37,7 +42,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}
@@ -56,7 +68,7 @@ else
LIBDIRSUFFIX=""
fi
-DOCS="AUTHORS COPYING NEWS README.md $CWD/$PRGNAM.SlackBuild"
+DOCS="LICENSE.txt README.md CHANGELOG.md $CWD/$PRGNAM.SlackBuild"
set -e
@@ -109,4 +121,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