summaryrefslogtreecommitdiffstats
path: root/perl/perl-Sub-Exporter-Progressive
diff options
context:
space:
mode:
Diffstat (limited to 'perl/perl-Sub-Exporter-Progressive')
-rw-r--r--perl/perl-Sub-Exporter-Progressive/perl-Sub-Exporter-Progressive.SlackBuild32
-rw-r--r--perl/perl-Sub-Exporter-Progressive/perl-Sub-Exporter-Progressive.info10
2 files changed, 27 insertions, 15 deletions
diff --git a/perl/perl-Sub-Exporter-Progressive/perl-Sub-Exporter-Progressive.SlackBuild b/perl/perl-Sub-Exporter-Progressive/perl-Sub-Exporter-Progressive.SlackBuild
index b597ffbfa9..4484fd6b23 100644
--- a/perl/perl-Sub-Exporter-Progressive/perl-Sub-Exporter-Progressive.SlackBuild
+++ b/perl/perl-Sub-Exporter-Progressive/perl-Sub-Exporter-Progressive.SlackBuild
@@ -1,8 +1,9 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for perl-Sub-Exporter-Progressive
# Copyright 2015 Glenn Becker <glenn.becker@gmail.com>
+# Copyright 2021 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,28 +23,38 @@
# 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-Sub-Exporter-Progressive
-VERSION=${VERSION:-0.001011}
+VERSION=${VERSION:-0.001013}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
SRCNAM="$(printf $PRGNAM | cut -d- -f2-)"
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
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}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -66,14 +77,15 @@ tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
cd $SRCNAM-$VERSION
chown -R root:root .
find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
perl Makefile.PL \
PREFIX=/usr \
INSTALLDIRS=vendor \
+ INSTALLVENDORMAN1DIR=/usr/man/man1 \
INSTALLVENDORMAN3DIR=/usr/man/man3
make
make test
@@ -99,4 +111,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-Sub-Exporter-Progressive/perl-Sub-Exporter-Progressive.info b/perl/perl-Sub-Exporter-Progressive/perl-Sub-Exporter-Progressive.info
index 5db7d7a9be..93a0a5d274 100644
--- a/perl/perl-Sub-Exporter-Progressive/perl-Sub-Exporter-Progressive.info
+++ b/perl/perl-Sub-Exporter-Progressive/perl-Sub-Exporter-Progressive.info
@@ -1,10 +1,10 @@
PRGNAM="perl-Sub-Exporter-Progressive"
-VERSION="0.001011"
+VERSION="0.001013"
HOMEPAGE="https://metacpan.org/pod/Sub::Exporter::Progressive"
-DOWNLOAD="https://cpan.metacpan.org/authors/id/F/FR/FREW/Sub-Exporter-Progressive-0.001011.tar.gz"
-MD5SUM="bb50b3ba1538902b197c04818a84230a"
+DOWNLOAD="https://cpan.metacpan.org/authors/id/F/FR/FREW/Sub-Exporter-Progressive-0.001013.tar.gz"
+MD5SUM="72cf6acdd2a0a8b105821a4db98e4ebe"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
-MAINTAINER="orphaned - no maintainer"
-EMAIL="nobody@nowhere.com"
+MAINTAINER="Willy Sudiarto Raharjo"
+EMAIL="willysr@slackbuilds.org"