perl/perl-BerkeleyDB: Updated for version 0.49.

Signed-off-by: Erik Hanson <erik@slackbuilds.org>
This commit is contained in:
Nishant Limbachia 2011-10-20 06:09:46 -05:00 committed by Niels Horn
parent 6d2477abae
commit 4878f1d4bc
3 changed files with 21 additions and 15 deletions

View file

@ -3,7 +3,7 @@
# Slackware Package Build Script for perl modules: BerkeleyDB
# Home Page http://search.cpan.org/dist/BerkeleyDB/
# Copyright (c) 2009-2010, Nishant Limbachia, Hoffman Estates, IL, USA (nishant _AT_ mnspace _DOT_ net)
# Copyright (c) 2009-2011, Nishant Limbachia, Hoffman Estates, IL, USA (nishant _AT_ mnspace _DOT_ net)
# All rights reserved.
# Redistribution and use of this script, with or without modification, is
@ -26,13 +26,12 @@
#
# Modified by the SlackBuilds.org project.
PRGNAM=perl-BerkeleyDB
VERSION=${VERSION:-0.48}
SRCNAM=BerkeleyDB
PRGNAM=perl-$SRCNAM
VERSION=${VERSION:-0.49}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
SRCNAM=$(echo $PRGNAM | cut -f2 -d-)
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
@ -87,15 +86,22 @@ 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
find $PKG -name "perllocal.pod" -o -name ".packlist" -o -name "*.bs" | xargs rm -f
# Remove perlocal.pod and .packlist from $PKG
( cd $PKG
find . -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
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 $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
find $PKG -depth -type d -empty -exec rm -rf {} \;
( 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
)
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc

View file

@ -1,10 +1,10 @@
PRGNAM="perl-BerkeleyDB"
VERSION="0.48"
VERSION="0.49"
HOMEPAGE="http://search.cpan.org/dist/BerkeleyDB/"
DOWNLOAD="http://search.cpan.org/CPAN/authors/id/P/PM/PMQS/BerkeleyDB-0.48.tar.gz"
MD5SUM="a37422a3ee116bc1f9f928a4a36edc31"
DOWNLOAD="http://search.cpan.org/CPAN/authors/id/P/PM/PMQS/BerkeleyDB-0.49.tar.gz"
MD5SUM="8a1883f87ba82fc1614a636c8f899ea5"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Nishant Limbachia"
EMAIL="nishant@mnspace.net"
APPROVED="Niels Horn"
APPROVED="Erik Hanson"

View file

@ -11,7 +11,7 @@ perl-BerkeleyDB:
perl-BerkeleyDB: perl-BerkeleyDB is a Perl extension for Berkeley DB
perl-BerkeleyDB: version 2, 3 or 4
perl-BerkeleyDB:
perl-BerkeleyDB:
perl-BerkeleyDB:
perl-BerkeleyDB:
perl-BerkeleyDB:
perl-BerkeleyDB: Homepage: http://search.cpan.org/dist/BerkeleyDB/