summaryrefslogtreecommitdiffstats
path: root/network/wavemon/wavemon.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/wavemon/wavemon.SlackBuild')
-rw-r--r--network/wavemon/wavemon.SlackBuild20
1 files changed, 15 insertions, 5 deletions
diff --git a/network/wavemon/wavemon.SlackBuild b/network/wavemon/wavemon.SlackBuild
index e9c8499483..4b77204663 100644
--- a/network/wavemon/wavemon.SlackBuild
+++ b/network/wavemon/wavemon.SlackBuild
@@ -1,15 +1,18 @@
-#!/bin/sh
+#!/bin/bash
# Wavemon Copyright 2012 Vliegendehuiskat, Netherlands
# Slackware build script for <wavemon>
-# Written by Nick Warne <nick@linicks.net> 2019...
+# Written by Nick Warne <warne.nick@gmail.com> 2019...
# Licensed under the WTFPL <http://sam.zoy.org/wtfpl/COPYING>
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=wavemon
-VERSION=${VERSION:-0.9.0}
+VERSION=${VERSION:-0.9.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -19,7 +22,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}
@@ -81,4 +91,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