From db2cdfde11d437a254e9580e00fac8541430c5bc Mon Sep 17 00:00:00 2001 From: dsomero Date: Sat, 29 Sep 2012 23:43:40 -0400 Subject: perl/perl-IO-Socket-Multicast: Fixed (Remove perllocal.pod) Signed-off-by: dsomero --- .../perl-IO-Socket-Multicast.SlackBuild | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'perl') diff --git a/perl/perl-IO-Socket-Multicast/perl-IO-Socket-Multicast.SlackBuild b/perl/perl-IO-Socket-Multicast/perl-IO-Socket-Multicast.SlackBuild index 1eb60ecd0e77..26c9201e1b8c 100644 --- a/perl/perl-IO-Socket-Multicast/perl-IO-Socket-Multicast.SlackBuild +++ b/perl/perl-IO-Socket-Multicast/perl-IO-Socket-Multicast.SlackBuild @@ -24,7 +24,7 @@ PRGNAM=perl-IO-Socket-Multicast VERSION=${VERSION:-1.12} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} SRC_PRGNAM=IO-Socket-Multicast @@ -72,21 +72,23 @@ 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 +perl Makefile.PL \ + PREFIX=/usr \ + INSTALLDIRS=vendor \ + INSTALLVENDORMAN3DIR=/usr/man/man3 make make test make install DESTDIR=$PKG -# Move man pages -mv $PKG/usr/share/man $PKG/usr/ +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 -# 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 perllocal.pod and other special files that don't need to be installed -find $PKG -name perllocal.pod -o -name ".packlist" -o -name "*.bs" -exec rm -f {} \; -# Remove empty directories -find $PKG -depth -type d -empty -delete +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 $DOCS $PKG/usr/doc/$PRGNAM-$VERSION -- cgit v1.2.3