# Automatically generated by apkbuild-cpan, template 1 # Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=perl-test-postgresql _pkgreal=Test-PostgreSQL pkgver=1.29 pkgrel=1 pkgdesc="PostgreSQL runner for tests" url="https://metacpan.org/release/Test-PostgreSQL/" arch="noarch" license="Artistic-2.0" depends="perl perl-class-accessor-lite" makedepends=" perl-test-sharedfork perl-dbd-pg perl-dbi perl-test-pod perl-moo perl-type-tiny perl-function-parameters perl-file-which perl-tie-hash-method perl-module-build-tiny perl-module-install " checkdepends="perl-try-tiny" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/T/TJ/TJC/$_pkgreal-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" prepare() { default_prepare export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') perl Build.PL --installdirs=vendor } build() { export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') ./Build } check() { ./Build test } package() { ./Build install --destdir="$pkgdir" find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } sha512sums=" 8ff40ee0b8548fa8342a7aeb30e3b23d94e594d9ae2de1e708fa7eecffea52d9b797c3e961f7f36ea90b9a23c7593307b169a3fc18c61b7164d7adb96d4c7326 Test-PostgreSQL-1.29.tar.gz "