summaryrefslogtreecommitdiffstats
path: root/ham/xlog/xlog.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'ham/xlog/xlog.SlackBuild')
-rw-r--r--ham/xlog/xlog.SlackBuild21
1 files changed, 16 insertions, 5 deletions
diff --git a/ham/xlog/xlog.SlackBuild b/ham/xlog/xlog.SlackBuild
index 1e5eae0af8..a29310f0eb 100644
--- a/ham/xlog/xlog.SlackBuild
+++ b/ham/xlog/xlog.SlackBuild
@@ -1,9 +1,10 @@
-#!/bin/sh
+#!/bin/bash
# SlackBuild script for xlog.
#
# Copyright 2010 Howard Pepper <h_pepper {at} bellsouth [dot] net>
# Copyright 2017 Nate Bargmann <n0nb@arrl.net>
+# Copyright 2020 JK Wood <joshuakwood@gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,10 +24,13 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-PRGNAM=${PRGNAM:-xlog}
-VERSION=${VERSION:-2.0.17}
+cd $(dirname $0) ; CWD=$(pwd)
+
+PRGNAM=xlog
+VERSION=${VERSION:-2.0.24}
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}
@@ -114,4 +125,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