summaryrefslogtreecommitdiff
path: root/perl/perl-Cache-FastMmap/perl-Cache-FastMmap.SlackBuild
diff options
context:
space:
mode:
authorNishant Limbachia <nishant@mnspace.net>2016-10-26 08:06:56 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-10-26 08:06:56 +0700
commit608ccf4800b2737c6b53edd5919ae2ce6a5be99f (patch)
treef0bc68d388cc5db29b0f6369317172d5cd1be431 /perl/perl-Cache-FastMmap/perl-Cache-FastMmap.SlackBuild
parent0c7b24b00469e33f4bafa5d2316bbdb598be58fc (diff)
downloadslackbuilds-608ccf4800b2737c6b53edd5919ae2ce6a5be99f.tar.gz
perl/perl-Cache-FastMmap: Updated for version 1.44.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'perl/perl-Cache-FastMmap/perl-Cache-FastMmap.SlackBuild')
-rw-r--r--perl/perl-Cache-FastMmap/perl-Cache-FastMmap.SlackBuild19
1 files changed, 9 insertions, 10 deletions
diff --git a/perl/perl-Cache-FastMmap/perl-Cache-FastMmap.SlackBuild b/perl/perl-Cache-FastMmap/perl-Cache-FastMmap.SlackBuild
index ae4a12290a..3807c67b03 100644
--- a/perl/perl-Cache-FastMmap/perl-Cache-FastMmap.SlackBuild
+++ b/perl/perl-Cache-FastMmap/perl-Cache-FastMmap.SlackBuild
@@ -3,7 +3,7 @@
# Slackware Package Build Script for perl modules: Cache::FastMmap
# Home Page http://search.cpan.org/dist/Cache-FastMmap/
-# Copyright (c) 2008-2012, Nishant Limbachia, Hoffman Estates, IL, USA
+# Copyright (c) 2008-2016, Nishant Limbachia, Hoffman Estates, IL, USA
# (nishant _AT_ mnspace _DOT_ net)
# All rights reserved.
@@ -27,13 +27,12 @@
#
# Modified by the SlackBuilds.org project.
-PRGNAM=perl-Cache-FastMmap
-VERSION=${VERSION:-1.40}
+SRCNAM=Cache-FastMmap
+PRGNAM=perl-$SRCNAM
+VERSION=${VERSION:-1.44}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-SRCNAM=$(echo $PRGNAM | cut -f2- -d-)
-
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
@@ -72,10 +71,10 @@ tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
cd $TMP/$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 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+ \( -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 {} \;
CFLAGS="$SLKCFLAGS" \
perl Makefile.PL PREFIX=/usr INSTALLDIRS=vendor INSTALLVENDORMAN3DIR=/usr/man/man3
@@ -88,7 +87,7 @@ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
find $PKG/usr/man -type f -exec gzip -9 {} \;