summaryrefslogtreecommitdiff
path: root/perl/perl-BerkeleyDB/perl-BerkeleyDB.SlackBuild
diff options
context:
space:
mode:
authorNishant Limbachia <nishant@mnspace.net>2011-07-19 11:53:47 -0300
committerRobby Workman <rworkman@slackbuilds.org>2011-07-21 22:52:13 -0500
commitc3231cb6875eb52d685005899d0c1bbf09de0ce8 (patch)
treef6eccb9c9b2601299913d77ebbc972eb603ad02f /perl/perl-BerkeleyDB/perl-BerkeleyDB.SlackBuild
parent19f3f07d8498ea4d948bc161bc728143b2d674df (diff)
downloadslackbuilds-c3231cb6875eb52d685005899d0c1bbf09de0ce8.tar.gz
perl/perl-BerkeleyDB: Updated for version 0.48.
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'perl/perl-BerkeleyDB/perl-BerkeleyDB.SlackBuild')
-rw-r--r--perl/perl-BerkeleyDB/perl-BerkeleyDB.SlackBuild13
1 files changed, 4 insertions, 9 deletions
diff --git a/perl/perl-BerkeleyDB/perl-BerkeleyDB.SlackBuild b/perl/perl-BerkeleyDB/perl-BerkeleyDB.SlackBuild
index df199f6677..acf1bd0cd6 100644
--- a/perl/perl-BerkeleyDB/perl-BerkeleyDB.SlackBuild
+++ b/perl/perl-BerkeleyDB/perl-BerkeleyDB.SlackBuild
@@ -26,18 +26,17 @@
#
# Modified by the SlackBuilds.org project.
-SRCNAM=BerkeleyDB
-PRGNAM=perl-$SRCNAM
-VERSION=${VERSION:-0.43}
+PRGNAM=perl-BerkeleyDB
+VERSION=${VERSION:-0.48}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
+SRCNAM=$(echo $PRGNAM | cut -f2 -d-)
+
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -88,18 +87,14 @@ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
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
find $PKG -name "perllocal.pod" -o -name ".packlist" -o -name "*.bs" | xargs rm -f
-# 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
-# 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