aboutsummaryrefslogtreecommitdiff
path: root/perl/perl-Path-Class/perl-Path-Class.SlackBuild
diff options
context:
space:
mode:
authorDonald Cooley <chytraeu@sdf.org>2016-07-25 21:41:06 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-07-25 21:41:06 +0700
commit9b216c674b95ed8183add92e990ea0be759e5ec2 (patch)
tree60fd29417a35c0c01ce08e79c76ba91cecb9f8e3 /perl/perl-Path-Class/perl-Path-Class.SlackBuild
parentb6204cb2dba1c6f13f9fb3c0e2fc5dda3529b740 (diff)
perl/perl-Path-Class: Updated for version 0.36.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'perl/perl-Path-Class/perl-Path-Class.SlackBuild')
-rw-r--r--perl/perl-Path-Class/perl-Path-Class.SlackBuild31
1 files changed, 16 insertions, 15 deletions
diff --git a/perl/perl-Path-Class/perl-Path-Class.SlackBuild b/perl/perl-Path-Class/perl-Path-Class.SlackBuild
index 1da00f63fa0b9..61ccfebdf848d 100644
--- a/perl/perl-Path-Class/perl-Path-Class.SlackBuild
+++ b/perl/perl-Path-Class/perl-Path-Class.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for perl-Path-Class
-# Copyright 2013 Donald Cooley La Porte, IN USA
+# Copyright 2016 Donald Cooley South Haven, Indiana USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=perl-Path-Class
-VERSION=${VERSION:-0.35}
+VERSION=${VERSION:-0.36}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -31,7 +31,7 @@ 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
@@ -42,8 +42,8 @@ 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"
@@ -69,16 +69,17 @@ 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 {} \;
-
-perl Makefile.PL \
- PREFIX=/usr \
- INSTALLDIRS=vendor \
- INSTALLVENDORMAN1DIR=/usr/man/man1 \
- INSTALLVENDORMAN3DIR=/usr/man/man3
-make
-make test
-make install DESTDIR=$PKG
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+perl Build.PL \
+./Build --prefix /usr \
+./Build --installdirs vendor
+./Build
+./Build test
+./Build install \
+ --destdir $PKG \
+ --install_path bindoc=/usr/man/man1 \
+ --install_path libdoc=/usr/man/man3
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