aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-test-postgresql/APKBUILD
blob: 5e10f96176350520ab759e150d509217df0b42e2 (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
43
44
45
46
# 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.26
pkgrel=0
pkgdesc="PostgreSQL runner for tests"
url="http://search.cpan.org/dist/Test-PostgreSQL/"
arch="noarch"
license="Artistic-2.0"
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 perl-module-install"
checkdepends="perl-try-tiny"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/T/TJ/TJC/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

check() {
	cd "$builddir"
	make test
}

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
}

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

sha512sums="c56986ab59e844272ab1d6447ed7d0ac83c3c5f5f1ad9a4f10c16505d51412ede3775f1dae28306dd1b7d461f679343bed911066ec775c58f21a88a1294c2d30  Test-PostgreSQL-1.26.tar.gz"