summaryrefslogtreecommitdiffstats
path: root/games/notpacman/notpacman.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/notpacman/notpacman.SlackBuild')
-rw-r--r--games/notpacman/notpacman.SlackBuild15
1 files changed, 11 insertions, 4 deletions
diff --git a/games/notpacman/notpacman.SlackBuild b/games/notpacman/notpacman.SlackBuild
index 5eaf7551ef..42959504f3 100644
--- a/games/notpacman/notpacman.SlackBuild
+++ b/games/notpacman/notpacman.SlackBuild
@@ -1,8 +1,8 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for notpacman
-# 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.
@@ -13,15 +13,22 @@
# that the unzip command can handle zipfiles with extra junk like a shebang
# at the beginning (it'll print a warning, is all).
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=notpacman
VERSION=${VERSION:-1.0.4}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
# *.love files are just zip files full of lua code, they're cross-platform
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}
@@ -68,4 +75,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