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