perl/perl-IO-Socket-Multicast: Fixed (Remove perllocal.pod)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
This commit is contained in:
parent
e3cffbcbac
commit
db2cdfde11
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue