summaryrefslogtreecommitdiffstats
path: root/perl/perl-Test-CleanNamespaces
diff options
context:
space:
mode:
Diffstat (limited to 'perl/perl-Test-CleanNamespaces')
-rw-r--r--perl/perl-Test-CleanNamespaces/perl-Test-CleanNamespaces.SlackBuild44
-rw-r--r--perl/perl-Test-CleanNamespaces/perl-Test-CleanNamespaces.info8
2 files changed, 21 insertions, 31 deletions
diff --git a/perl/perl-Test-CleanNamespaces/perl-Test-CleanNamespaces.SlackBuild b/perl/perl-Test-CleanNamespaces/perl-Test-CleanNamespaces.SlackBuild
index 9b4cbcbcba..1c57c91084 100644
--- a/perl/perl-Test-CleanNamespaces/perl-Test-CleanNamespaces.SlackBuild
+++ b/perl/perl-Test-CleanNamespaces/perl-Test-CleanNamespaces.SlackBuild
@@ -1,8 +1,8 @@
-#!/bin/sh
+#!/bin/bash
-# Slackware build script for Test-CleanNamespaces
+# Slackware build script for perl-Test-CleanNamespaces
-# Copyright 2018 Jan F. Chadima <jfch@jagda.eu>
+# Copyright 2018-2019 Jan F. Chadima <jfch@jagda.eu>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,40 +22,30 @@
# 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-CleanNamespaces
-VERSION=${VERSION:-0.22}
-BUILD=${BUILD:-1}
+VERSION=${VERSION:-0.24}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
SRCNAM="$(printf $PRGNAM | cut -d- -f2-)"
-if [ -z "$ARCH" ]; then
- case "$( uname -m )" in
- i?86) ARCH=i586 ;;
- arm*) ARCH=arm ;;
- *) ARCH=$( uname -m ) ;;
- esac
+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
-CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i586" ]; then
- SLKCFLAGS="-O2 -march=i586 -mtune=i686"
- LIBDIRSUFFIX=""
-elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
- LIBDIRSUFFIX=""
-elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-O2 -fPIC"
- LIBDIRSUFFIX="64"
-else
- SLKCFLAGS="-O2"
- LIBDIRSUFFIX=""
-fi
-
set -e
rm -rf $PKG
@@ -104,4 +94,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-CleanNamespaces/perl-Test-CleanNamespaces.info b/perl/perl-Test-CleanNamespaces/perl-Test-CleanNamespaces.info
index bb54fa0db1..305b854b1c 100644
--- a/perl/perl-Test-CleanNamespaces/perl-Test-CleanNamespaces.info
+++ b/perl/perl-Test-CleanNamespaces/perl-Test-CleanNamespaces.info
@@ -1,10 +1,10 @@
PRGNAM="perl-Test-CleanNamespaces"
-VERSION="0.22"
+VERSION="0.24"
HOMEPAGE="https://metacpan.org/pod/Test::CleanNamespaces"
-DOWNLOAD="https://cpan.metacpan.org/authors/id/E/ET/ETHER/Test-CleanNamespaces-0.22.tar.gz"
-MD5SUM="8c48bb0427f2077edce57c50491468ec"
+DOWNLOAD="https://cpan.metacpan.org/authors/id/E/ET/ETHER/Test-CleanNamespaces-0.24.tar.gz"
+MD5SUM="0ddfb7e5f11ddfb9498cb500c7616fb8"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="perl-File-pushd perl-Sub-Exporter perl-Test-Deep perl-Test-Warnings perl-namespace-clean perl-Sub-Identify"
+REQUIRES="perl-File-pushd perl-Test-Deep perl-Test-Warnings perl-namespace-clean perl-Sub-Identify"
MAINTAINER="Jan F. Chadima"
EMAIL="jfch@jagda.eu"