summaryrefslogtreecommitdiffstats
path: root/games/fortune-starwars/fortune-starwars.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/fortune-starwars/fortune-starwars.SlackBuild')
-rw-r--r--games/fortune-starwars/fortune-starwars.SlackBuild15
1 files changed, 11 insertions, 4 deletions
diff --git a/games/fortune-starwars/fortune-starwars.SlackBuild b/games/fortune-starwars/fortune-starwars.SlackBuild
index 099bee62e3..1955069006 100644
--- a/games/fortune-starwars/fortune-starwars.SlackBuild
+++ b/games/fortune-starwars/fortune-starwars.SlackBuild
@@ -1,21 +1,28 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for fortune-starwars
-# 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.
# VERSION is the timestamp on the tarball.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=fortune-starwars
VERSION=${VERSION:-20051125}
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}
@@ -47,4 +54,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