diff options
Diffstat (limited to 'system/sbotools/sbotools.SlackBuild')
-rw-r--r-- | system/sbotools/sbotools.SlackBuild | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/system/sbotools/sbotools.SlackBuild b/system/sbotools/sbotools.SlackBuild index e09fd42338..35c7599d2f 100644 --- a/system/sbotools/sbotools.SlackBuild +++ b/system/sbotools/sbotools.SlackBuild @@ -1,17 +1,29 @@ -#!/bin/sh +#!/bin/bash # # Slackware build script for <sbotools> # Written by Jacob Pipkin <j@dawnrazor.net> # Licensed under the WTFPL <http://sam.zoy.org/wtfpl/COPYING> +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=sbotools VERSION=${VERSION:-2.7} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} SRCNAM=$PRGNAM -CWD=$(pwd) +ARCH=noarch + +# 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} @@ -73,4 +85,4 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-noarch-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |