# Contributor: Leonardo Arena # Maintainer: Leonardo Arena pkgname=perl-db_file _pkgname=DB_File pkgver=1.852 pkgrel=0 pkgdesc="Perl5 access to Berkeley DB" url="http://search.cpan.org/~pmqs/DB_File-1.820/" arch="all" license="GPL PerlArtistic" depends="perl" makedepends="perl-dev db-dev" install= subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/P/PM/PMQS/$_pkgname-$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" prepare() { default_prepare export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor } build() { cd "$builddir" export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make } check() { cd "$builddir" export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make test } package() { cd "$builddir" make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } sha512sums="2a08e43ef007e31e551b79e5b5f73dc6a742241c4fdf11f7228741b237df78b10aef182ac40a6cb6588366a5bd8bc326a5f8bbd2542fb694e2ed803e87d8f09f DB_File-1.852.tar.gz"