summaryrefslogtreecommitdiff
path: root/perl/perl-Term-ReadLine-Gnu/perl-Term-ReadLine-Gnu.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2021-08-03 00:08:07 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-10-13 00:51:30 +0700
commit4e719f4af19341d05cbb8a3c1f5cf479b36a9e37 (patch)
tree9558ba5b98b674b392988fb0b04a9e121218657d /perl/perl-Term-ReadLine-Gnu/perl-Term-ReadLine-Gnu.SlackBuild
parent5773a8c369aed740165ff41dea13ca5b76ecaf5a (diff)
downloadslackbuilds-4e719f4af19341d05cbb8a3c1f5cf479b36a9e37.tar.gz
perl/perl-Term-ReadLine-Gnu: Updated for version 1.42, new maint.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'perl/perl-Term-ReadLine-Gnu/perl-Term-ReadLine-Gnu.SlackBuild')
-rw-r--r--perl/perl-Term-ReadLine-Gnu/perl-Term-ReadLine-Gnu.SlackBuild27
1 files changed, 13 insertions, 14 deletions
diff --git a/perl/perl-Term-ReadLine-Gnu/perl-Term-ReadLine-Gnu.SlackBuild b/perl/perl-Term-ReadLine-Gnu/perl-Term-ReadLine-Gnu.SlackBuild
index b5a934d8d1..dbf2f739f9 100644
--- a/perl/perl-Term-ReadLine-Gnu/perl-Term-ReadLine-Gnu.SlackBuild
+++ b/perl/perl-Term-ReadLine-Gnu/perl-Term-ReadLine-Gnu.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for perl-Term-ReadLine-Gnu
-# Copyright 2013-2020 Andreas Voegele <andreas@andreasvoegele.com>
+# Copyright 2013-2020 Andreas Voegele <email removed>
#
# 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,14 @@
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+# Now maintained by B. Watson <yalhcru@gmail.com>
+
+# 20210802 bkw: take over as maintainer and upgrade for v1.42.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=perl-Term-ReadLine-Gnu
-VERSION=${VERSION:-1.37}
+VERSION=${VERSION:-1.42}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -34,9 +38,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# 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
@@ -69,11 +70,8 @@ rm -rf $SRCNAM-$VERSION
tar xovf $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 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
perl Makefile.PL \
INSTALLDIRS=vendor \
@@ -83,10 +81,11 @@ make
env INPUTRC=/dev/null make test
make install DESTDIR=$PKG
-find $PKG/usr/man -type f -exec gzip -9 {} \;
-for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
-
-find $PKG -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | xargs rm -f || true
+gzip -9 $PKG/usr/man/man?/*
+find $PKG -name perllocal.pod \
+ -o -name ".packlist" \
+ -o -name "*.bs" \
+ | xargs rm -f || true
find $PKG -depth -type d -empty -delete || true