diff options
Diffstat (limited to 'libraries/perl-BerkeleyDB/perl-BerkeleyDB.SlackBuild')
-rw-r--r-- | libraries/perl-BerkeleyDB/perl-BerkeleyDB.SlackBuild | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/libraries/perl-BerkeleyDB/perl-BerkeleyDB.SlackBuild b/libraries/perl-BerkeleyDB/perl-BerkeleyDB.SlackBuild index 07d17691ca..df199f6677 100644 --- a/libraries/perl-BerkeleyDB/perl-BerkeleyDB.SlackBuild +++ b/libraries/perl-BerkeleyDB/perl-BerkeleyDB.SlackBuild @@ -27,8 +27,8 @@ # Modified by the SlackBuilds.org project. SRCNAM=BerkeleyDB -PRGNAM=perl-BerkeleyDB -VERSION=0.42 +PRGNAM=perl-$SRCNAM +VERSION=${VERSION:-0.43} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -89,21 +89,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 -) +find $PKG -name "perllocal.pod" -o -name ".packlist" -o -name "*.bs" | xargs rm -f -# Remove empty directories -find $PKG -depth -type d -empty -exec rm -rf {} \; - -### strip binaries +# 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 |