summaryrefslogtreecommitdiffstats
path: root/perl/perl-Test-Class
diff options
context:
space:
mode:
Diffstat (limited to 'perl/perl-Test-Class')
-rw-r--r--perl/perl-Test-Class/perl-Test-Class.SlackBuild16
-rw-r--r--perl/perl-Test-Class/perl-Test-Class.info2
2 files changed, 14 insertions, 4 deletions
diff --git a/perl/perl-Test-Class/perl-Test-Class.SlackBuild b/perl/perl-Test-Class/perl-Test-Class.SlackBuild
index 4292ca12bd..b8a1d6e6c6 100644
--- a/perl/perl-Test-Class/perl-Test-Class.SlackBuild
+++ b/perl/perl-Test-Class/perl-Test-Class.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for perl-Test-Class
@@ -22,16 +22,26 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=perl-Test-Class
VERSION=${VERSION:-0.50}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
SRCNAM="$(printf $PRGNAM | cut -d- -f2-)"
ARCH=noarch
-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}
@@ -79,4 +89,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
diff --git a/perl/perl-Test-Class/perl-Test-Class.info b/perl/perl-Test-Class/perl-Test-Class.info
index 0f9b1f4664..8b556d5698 100644
--- a/perl/perl-Test-Class/perl-Test-Class.info
+++ b/perl/perl-Test-Class/perl-Test-Class.info
@@ -5,6 +5,6 @@ DOWNLOAD="https://cpan.metacpan.org/authors/id/E/ET/ETHER/Test-Class-0.50.tar.gz
MD5SUM="4cc3aaad36b72f424ed90122701d2451"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="perl-Module-Runtime perl-MRO-Compat perl-Test-Simple perl-Try-Tiny"
+REQUIRES="perl-MRO-Compat perl-Test-Simple perl-Try-Tiny perl-Test-Exception"
MAINTAINER="Jan F. Chadima"
EMAIL="jfch@jagda.eu"