# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
setvar pkgname = 'perl-test-postgresql'
setvar _pkgreal = 'Test-PostgreSQL'
setvar pkgver = '1.23'
setvar pkgrel = '0'
setvar pkgdesc = ""PostgreSQL runner for tests""
setvar url = ""http://search.cpan.org/dist/Test-PostgreSQL/""
setvar arch = ""noarch""
setvar license = ""Artistic-2""
setvar cpandepends = ""perl-class-accessor-lite""
setvar cpanmakedepends = ""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""
setvar depends = "$cpandepends"
setvar makedepends = ""perl-dev $cpanmakedepends""
setvar subpackages = ""$pkgname-doc""
setvar source = ""http://search.cpan.org/CPAN/authors/id/T/TJ/TJC/$_pkgreal-$pkgver.tar.gz""
setvar builddir = ""$srcdir/$_pkgreal-$pkgver""

proc check {
	cd $builddir
	make test
}

proc prepare {
	cd $builddir
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags})'
	PERL_MM_USE_DEFAULT=1' perl Makefile.PL INSTALLDIRS=vendor
}

proc build {
	cd $builddir
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags})
	make
}

proc package {
	cd $builddir
	make DESTDIR="$pkgdir" install
	find $pkgdir '(' -name perllocal.pod -o -name .packlist ')' -delete
}

setvar sha512sums = ""a835d55d7ddc66255f09ae15fd66d3f40b70fa7a4da7f70ffaa8400639c893e942dbbc427086441e15859fc18736d121ab03cc2d2043d48ae5123530e1a31fb7  Test-PostgreSQL-1.23.tar.gz""