blob: b19cecaa9d37df3a6a94472d96f4d0190eeb6207 (
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
47
|
# 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.27
pkgrel=1
pkgdesc="PostgreSQL runner for tests"
url="https://metacpan.org/release/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 perl-module-build-tiny"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends 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
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
perl Build.PL --installdirs=vendor
}
build() {
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
./Build
}
check() {
cd "$builddir"
./Build test
}
package() {
cd "$builddir"
./Build install --destdir="$pkgdir"
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
sha512sums="e8f5285b358659fdcde67c711d66307926fb4dab11e70b0a69ebf42308cd879819c15f04aa8703f93a3dc447a806f0a6afb0b7d57cf538c94170c5df66d24d11 Test-PostgreSQL-1.27.tar.gz"
|