diff options
Diffstat (limited to 'network/perl-NetAddr-IP/perl-NetAddr-IP.SlackBuild')
-rw-r--r-- | network/perl-NetAddr-IP/perl-NetAddr-IP.SlackBuild | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/network/perl-NetAddr-IP/perl-NetAddr-IP.SlackBuild b/network/perl-NetAddr-IP/perl-NetAddr-IP.SlackBuild index a9e5f912ae..7be71eda70 100644 --- a/network/perl-NetAddr-IP/perl-NetAddr-IP.SlackBuild +++ b/network/perl-NetAddr-IP/perl-NetAddr-IP.SlackBuild @@ -3,7 +3,7 @@ # Slackware Package Build Script for perl modules: NetAddr::IP # Home Page http://search.cpan.org/dist/NetAddr-IP/ -# Copyright (c) 2008-2010, Nishant Limbachia, Hoffman Estates, IL, USA (nishant__AT__mnspace__DOT__net) +# Copyright (c) 2008-2010, Nishant Limbachia, Hoffman Estates, IL, USA (nishant _AT_ mnspace _DOT_ net) # All rights reserved. # Redistribution and use of this script, with or without modification, is @@ -28,7 +28,7 @@ SRCNAM=NetAddr-IP PRGNAM=perl-NetAddr-IP -VERSION=4.027 +VERSION=4.028 BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -91,20 +91,18 @@ cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild # Remove perlocal.pod and .packlist from $PKG -( cd $PKG - find . -name "perllocal.pod" -o -name ".packlist" -o -name "*.bs" | xargs rm -f -) - -# Remove empty directories -find $PKG -depth -type d -empty -exec rm -rf {} \; +find $PKG -name "perllocal.pod" -o -name ".packlist" -o -name "*.bs" | xargs rm -f +# strip binaries find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -( 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 & compress man pages +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 + +# Remove empty directories +find $PKG -depth -type d -empty -exec rm -rf {} \; mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc |