diff options
Diffstat (limited to 'games/fortune-slackware/fortune-slackware.SlackBuild')
-rw-r--r-- | games/fortune-slackware/fortune-slackware.SlackBuild | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/games/fortune-slackware/fortune-slackware.SlackBuild b/games/fortune-slackware/fortune-slackware.SlackBuild index ba5c4367f8..bb0b5e61c2 100644 --- a/games/fortune-slackware/fortune-slackware.SlackBuild +++ b/games/fortune-slackware/fortune-slackware.SlackBuild @@ -1,18 +1,25 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for fortune-slackware -# 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. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=fortune-slackware VERSION=${VERSION:-1.15} 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} @@ -56,4 +63,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 |