From d71f7af76c0465a74ee99032804b2b65ea85abc7 Mon Sep 17 00:00:00 2001 From: LukenShiro Date: Sat, 29 Dec 2012 12:30:18 +0100 Subject: perl/perl-net-ip: Updated for version 1.26. Signed-off-by: Matteo Bernardini --- perl/perl-net-ip/perl-net-ip.SlackBuild | 35 +++++++++++---------------------- 1 file changed, 12 insertions(+), 23 deletions(-) (limited to 'perl/perl-net-ip/perl-net-ip.SlackBuild') diff --git a/perl/perl-net-ip/perl-net-ip.SlackBuild b/perl/perl-net-ip/perl-net-ip.SlackBuild index 8a420f37c9..95f7b5da4e 100644 --- a/perl/perl-net-ip/perl-net-ip.SlackBuild +++ b/perl/perl-net-ip/perl-net-ip.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for perl-net-ip -# Copyright 2008 LukenShiro +# Copyright 2008-2013 LukenShiro, Italy # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,16 +25,14 @@ PRGNAM=perl-net-ip SRC_PRGNAM=Net-IP -VERSION=${VERSION:-1.25} +VERSION=${VERSION:-1.26} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -# 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 @@ -61,29 +59,20 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -echo "y" | perl Makefile.PL INSTALLDIRS=vendor - +echo "y" | perl Makefile.PL \ + PREFIX=/usr \ + INSTALLDIRS=vendor \ + INSTALLVENDORMAN3DIR=/usr/man/man3 make make install DESTDIR=$PKG -#Move man-pages to appropriate place -mv $PKG/usr/share/man $PKG/usr/ - -# Remove perlocal.pod, .packlist and .bs from $PKG -( for i in perllocal.pod .packlist *.bs; do - find $PKG -name "$i" -exec rm -rf {} \; - done -) - -# Remove empty directories -find $PKG -depth -type d -empty -exec rm -rf {} \; - -# 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 -) +find $PKG/usr/man -type f -exec gzip -9 {} \; +for i in $( find . -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 + +find $PKG -depth -type d -empty -delete || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a $DOCFILES $PKG/usr/doc/$PRGNAM-$VERSION -- cgit v1.2.3