summaryrefslogtreecommitdiffstats
path: root/games/jfsw_wanton_destruction/jfsw_wanton_destruction.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/jfsw_wanton_destruction/jfsw_wanton_destruction.SlackBuild')
-rw-r--r--games/jfsw_wanton_destruction/jfsw_wanton_destruction.SlackBuild15
1 files changed, 11 insertions, 4 deletions
diff --git a/games/jfsw_wanton_destruction/jfsw_wanton_destruction.SlackBuild b/games/jfsw_wanton_destruction/jfsw_wanton_destruction.SlackBuild
index 94316c4883..b0cddcd0aa 100644
--- a/games/jfsw_wanton_destruction/jfsw_wanton_destruction.SlackBuild
+++ b/games/jfsw_wanton_destruction/jfsw_wanton_destruction.SlackBuild
@@ -1,8 +1,8 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for jfsw_wanton_destruction
-# Written by B. Watson (yalhcru@gmail.com)
+# Written by B. Watson (urchlay@slackware.uk)
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
@@ -17,14 +17,21 @@
# registration or even captcha required. I self-hosted the archive to
# guarantee a stable download link.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=jfsw_wanton_destruction
VERSION=${VERSION:-20050909}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
ARCH=noarch
-CWD=$(pwd)
+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}
@@ -54,4 +61,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