summaryrefslogtreecommitdiffstats
path: root/perl/perl-CPANPLUS/perl-CPANPLUS.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'perl/perl-CPANPLUS/perl-CPANPLUS.SlackBuild')
-rw-r--r--perl/perl-CPANPLUS/perl-CPANPLUS.SlackBuild20
1 files changed, 15 insertions, 5 deletions
diff --git a/perl/perl-CPANPLUS/perl-CPANPLUS.SlackBuild b/perl/perl-CPANPLUS/perl-CPANPLUS.SlackBuild
index 04964358bd..4153c376f0 100644
--- a/perl/perl-CPANPLUS/perl-CPANPLUS.SlackBuild
+++ b/perl/perl-CPANPLUS/perl-CPANPLUS.SlackBuild
@@ -1,8 +1,8 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for perl-CPANPLUS
-# Copyright 2013-2019 Andreas Voegele <andreas@andreasvoegele.com>
+# Copyright 2013-2020 Andreas Voegele <andreas@andreasvoegele.com>
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
@@ -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-CPANPLUS
-VERSION=${VERSION:-0.9904}
+VERSION=${VERSION:-0.9910}
BUILD=${BUILD:-1}
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