aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-test-postgresql/APKBUILD
blob: 05bd3f3aeb9b403f8f88edc8bafd9c6f8ddecf3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# 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.21
pkgrel=0
pkgdesc="PostgreSQL runner for tests"
url="http://search.cpan.org/dist/Test-PostgreSQL/"
arch="noarch"
license="Artistic-2"
cpandepends="perl-class-accessor-lite"
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"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/T/TJ/TJC/$_pkgreal-$pkgver.tar.gz"

_builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	cd "$_builddir"
	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 && make test
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

md5sums="81d791cc9390bb98ab1c7382e1e28021  Test-PostgreSQL-1.21.tar.gz"
sha256sums="f3395321a3d2c47fc26a90d0f0947baef25b1b029793502d9af2a17188f9401d  Test-PostgreSQL-1.21.tar.gz"
sha512sums="bb7c89e2ba96da448d1f8ab6a5cb1540a787a035c0add6a707f82f82bc381a7c2b27d5bf0f0bd68cb2fbb81987ad2e8d3be6d6249a66fad246167fce5b96f4b2  Test-PostgreSQL-1.21.tar.gz"