summaryrefslogtreecommitdiff
path: root/perl/perl-IO-Socket-Multicast
diff options
context:
space:
mode:
Diffstat (limited to 'perl/perl-IO-Socket-Multicast')
-rw-r--r--perl/perl-IO-Socket-Multicast/perl-IO-Socket-Multicast.SlackBuild20
1 files changed, 11 insertions, 9 deletions
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 1eb60ecd0e..26c9201e1b 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