diff options
author | Nishant Limbachia <nishant@mnspace.net> | 2010-08-15 19:25:46 -0400 |
---|---|---|
committer | Erik Hanson <erik@slackbuilds.org> | 2010-08-15 20:53:43 -0500 |
commit | a598c5a5ed425f609f032865ae68424c1176c3ea (patch) | |
tree | 39926c5b64bac9e122def7fdcf1667d127945590 /libraries/perl-BerkeleyDB/perl-BerkeleyDB.SlackBuild | |
parent | 6b48795d523488da52ec3b13e96135ae076332ab (diff) |
libraries/perl-BerkeleyDB: Updated for version 0.43.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
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 07d17691ca058..df199f6677c6e 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 |