1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-21 18:25:41 +03:00
aports/community/perl-test-postgresql/APKBUILD

43 lines
1.3 KiB
Text

# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-test-postgresql
_pkgreal=Test-PostgreSQL
pkgver=1.28
pkgrel=0
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="718cf5a692acf9000169ae9d44626d14c9cab40ba25a937978c0ec7e9ea06b53e3e9ee12704875954921ccd7e068d704160323f8903d95e47302e559dbbcb476 Test-PostgreSQL-1.28.tar.gz"