summaryrefslogtreecommitdiff
path: root/perl/perl-NetPacket/perl-NetPacket.SlackBuild
diff options
context:
space:
mode:
authorMarco Bonetti <sid77@slackware.it>2012-02-19 17:25:17 -0200
committerNiels Horn <niels.horn@slackbuilds.org>2012-02-19 17:25:17 -0200
commit2ae59690fb4e9da122bc100ec56e9fa524daaad8 (patch)
tree1223a51c8856ea0f3da4a756a3cef47a098a3b31 /perl/perl-NetPacket/perl-NetPacket.SlackBuild
parentf9299aff70c4de3029de5647265d045c2c3ded80 (diff)
downloadslackbuilds-2ae59690fb4e9da122bc100ec56e9fa524daaad8.tar.gz
perl/perl-NetPacket: Updated for version 1.3.1.
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'perl/perl-NetPacket/perl-NetPacket.SlackBuild')
-rw-r--r--perl/perl-NetPacket/perl-NetPacket.SlackBuild42
1 files changed, 16 insertions, 26 deletions
diff --git a/perl/perl-NetPacket/perl-NetPacket.SlackBuild b/perl/perl-NetPacket/perl-NetPacket.SlackBuild
index 2e9e090901..18abc7dc0d 100644
--- a/perl/perl-NetPacket/perl-NetPacket.SlackBuild
+++ b/perl/perl-NetPacket/perl-NetPacket.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for perl-NetPacket
-# Copyright 2009-2010 Marco Bonetti <sid77@slackware.it>
+# Copyright 2009-2012 Marco Bonetti <sid77@slackware.it>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,19 +23,17 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=perl-NetPacket
-VERSION=${VERSION:-0.41.1}
+VERSION=${VERSION:-1.3.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
SRC_PRGNAM=NetPacket
DOCS="README"
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -74,28 +72,20 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-perl Makefile.PL INSTALLDIRS=perl
-make
-make test
-make install DESTDIR=$PKG
-
-# Move man pages
-mv $PKG/usr/share/man $PKG/usr/
-
-# Compress man pages
-( cd $PKG/usr/man
- find . -type f -exec gzip -9 {} \;
- for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
-)
-
-# Remove perllocal.pod and other special files that don't need to be installed
-( cd $PKG
- # Remove 'special' files
- find . -name perllocal.pod \
- -o -name ".packlist" \
- -o -name "*.bs" \
- | xargs rm -f
-)
+perl Build.PL
+./Build
+./Build test
+./Build install install_base=$PKG/usr
+
+# sigh...
+if [ ! -z "${LIBDIRSUFFIX}" ]; then
+ mv $PKG/usr/lib $PKG/usr/lib${LIBDIRSUFFIX}
+fi
+
+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
# Remove empty directories
find $PKG -depth -type d -empty -delete