diff options
Diffstat (limited to 'perl/perl-Cache-FastMmap/perl-Cache-FastMmap.SlackBuild')
-rw-r--r-- | perl/perl-Cache-FastMmap/perl-Cache-FastMmap.SlackBuild | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/perl/perl-Cache-FastMmap/perl-Cache-FastMmap.SlackBuild b/perl/perl-Cache-FastMmap/perl-Cache-FastMmap.SlackBuild index 184ffa9800..28b6d14db6 100644 --- a/perl/perl-Cache-FastMmap/perl-Cache-FastMmap.SlackBuild +++ b/perl/perl-Cache-FastMmap/perl-Cache-FastMmap.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware Package Build Script for perl modules: Cache::FastMmap # Home Page https://metacpan.org/release/Cache-FastMmap @@ -27,11 +27,15 @@ # # Modified by the SlackBuilds.org project. -SRCNAM=Cache-FastMmap -PRGNAM=perl-$SRCNAM +cd $(dirname $0) ; CWD=$(pwd) + +PRGNAM=perl-Cache-FastMmap VERSION=${VERSION:-1.44} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} + +SRCNAM=Cache-FastMmap if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -41,7 +45,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} @@ -102,4 +113,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 |