# Contributor: Jeff Bilyk <jbilyk at gmail> # Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org> pkgname=perl-dbi _realpkgname=DBI pkgver=1.642 pkgrel=0 pkgdesc="Database independent interface for Perl" url="https://metacpan.org/release/DBI" arch="all" license="GPL-2.0-only OR Artistic-1.0-Perl" depends= makedepends="perl perl-dev" subpackages="$pkgname-doc" source="https://www.cpan.org/authors/id/T/TI/TIMB/${_realpkgname}-$pkgver.tar.gz" builddir="$srcdir"/${_realpkgname}-$pkgver build() { cd "$builddir" PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor make } check () { cd "$builddir" make test } package() { cd "$builddir" make DESTDIR="$pkgdir" install # creates file collision among perl modules find "$pkgdir" -name perllocal.pod -delete } sha512sums="088161a004893a495b740c323acdfe096936812f8f1b12c0ae4b5b23a6dced01761be5589be5e2e66661bdeffd043504097213e713c0258fe1db2a60156ea079 DBI-1.642.tar.gz"