diff options
Diffstat (limited to 'perl/perl-Log-Message-Simple')
-rw-r--r-- | perl/perl-Log-Message-Simple/perl-Log-Message-Simple.SlackBuild | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/perl/perl-Log-Message-Simple/perl-Log-Message-Simple.SlackBuild b/perl/perl-Log-Message-Simple/perl-Log-Message-Simple.SlackBuild index 704d778b74..1b07d180c9 100644 --- a/perl/perl-Log-Message-Simple/perl-Log-Message-Simple.SlackBuild +++ b/perl/perl-Log-Message-Simple/perl-Log-Message-Simple.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for perl-Log-Message-Simple @@ -16,10 +16,13 @@ # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=perl-Log-Message-Simple VERSION=${VERSION:-0.10} BUILD=${BUILD:-2} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} SRCNAM="$(printf $PRGNAM | cut -d- -f2-)" @@ -31,7 +34,14 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +# 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} @@ -90,4 +100,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 |