# Contributor: Leonardo Arena # Maintainer: Leonardo Arena pkgname=perl-db_file _pkgname=DB_File pkgver=1.851 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="088039715d92de17910b2b53ab391454d1b63df44c7dd06ca32420a6851e83436fa1b65d9cf852580d8fdfe95f1cd9fe0af2689db5638be08604526f88f61761 DB_File-1.851.tar.gz"