#Maintainer: George Vlahavas pkgname=perl-berkeleydb pkgver=0.42 pkgrel=1gv source=(http://search.cpan.org/CPAN/authors/id/P/PM/PMQS/BerkeleyDB-$pkgver.tar.gz) docs=("readme" "install" "copying" "changelog*" "authors" "news" "todo" "license" "maintainers" "copyright.pod") slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "perl-berkeleydb (Perl extension for Berkeley DB version 2, 3 or 4)" "This Perl module provides an interface to most of the functionality" "available in Berkeley DB versions 2, 3 and 4. In general it is safe to" "assume that the interface provided here to be identical to the" "Berkeley DB interface. The main changes have been to make the Berkeley" "DB API work in a Perl way. Note that if you are using Berkeley DB 2.x," "the new features available in Berkeley DB 3.x or DB 4.x are not" "available via this module." ) build() { cd $startdir/src/BerkeleyDB-$pkgver perl Makefile.PL || exit 1 make OPTIMIZE="$CFLAGS" || exit 1 make install INSTALLDIRS=vendor DESTDIR=$startdir/pkg || exit 1 # Remove perllocal.pod and .packlist if present in the package ( for i in perllocal.pod .packlist; do find $startdir/pkg -name "$i" -exec rm -rf {} \; done ) || exit 1 }