summaryrefslogtreecommitdiffstats
path: root/ham/dxcc/dxcc.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'ham/dxcc/dxcc.SlackBuild')
-rw-r--r--ham/dxcc/dxcc.SlackBuild18
1 files changed, 14 insertions, 4 deletions
diff --git a/ham/dxcc/dxcc.SlackBuild b/ham/dxcc/dxcc.SlackBuild
index f28f852cb5..40876f37c9 100644
--- a/ham/dxcc/dxcc.SlackBuild
+++ b/ham/dxcc/dxcc.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackbuild for dxcc
# Written by JK Wood <joshuakwood@gmail.com>
@@ -20,14 +20,24 @@
# see fit. Or as I see fit. Or as I fit. Although
# that is unlikely, as I am rather tall.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=dxcc
-VERSION=${VERSION:-20080225}
+VERSION=${VERSION:-20191204}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
# This is a Perl script, architecture agnostic
ARCH=noarch
-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}
@@ -68,4 +78,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