summaryrefslogtreecommitdiffstats
path: root/ham/xgridloc
diff options
context:
space:
mode:
Diffstat (limited to 'ham/xgridloc')
-rw-r--r--ham/xgridloc/xgridloc.SlackBuild16
-rw-r--r--ham/xgridloc/xgridloc.info2
2 files changed, 14 insertions, 4 deletions
diff --git a/ham/xgridloc/xgridloc.SlackBuild b/ham/xgridloc/xgridloc.SlackBuild
index ec5de980ba..af802f2b50 100644
--- a/ham/xgridloc/xgridloc.SlackBuild
+++ b/ham/xgridloc/xgridloc.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackbuild for xgridloc
# Written by JK Wood <joshuakwood@gmail.com>
@@ -20,10 +20,13 @@
# 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=xgridloc
VERSION=${VERSION:-1.7}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -33,7 +36,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}
@@ -102,4 +112,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
diff --git a/ham/xgridloc/xgridloc.info b/ham/xgridloc/xgridloc.info
index c2269fe0fe..c187c447cc 100644
--- a/ham/xgridloc/xgridloc.info
+++ b/ham/xgridloc/xgridloc.info
@@ -1,7 +1,7 @@
PRGNAM="xgridloc"
VERSION="1.7"
HOMEPAGE="https://www.qsl.net/5b4az/"
-DOWNLOAD="https://www.qsl.net/5b4az/pkg/locator/xgridloc/xgridloc-1.7.tar.bz2"
+DOWNLOAD="https://slackware.uk/sbosrcarch/by-name/ham/xgridloc/xgridloc-1.7.tar.bz2"
MD5SUM="4301e1e04cb01b6ad5382f8c9db1d18c"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""