blob: 03b8f963f9bb8e09e8fa41822ab0ad8743c1f1fa (
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
48
|
# Automatically generated by apkbuild-cpan, template 2
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=perl-test-roo
_pkgreal=Test-Roo
pkgver=1.004
pkgrel=0
pkgdesc="Composable, reusable tests with roles and Moo"
url="http://search.cpan.org/dist/Test-Roo/"
arch="noarch"
license="apache_2_0"
cpandepends="perl-moox-types-mooselike perl-moo perl-sub-install perl-strictures"
cpanmakedepends=""
cpancheckdepends="perl-capture-tiny"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
checkdepends="$cpancheckdepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
default_prepare || return 1
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 || return 1
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
check() {
cd "$builddir"
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make test
}
sha512sums="739b26d334d38971aa8e901e518f26ec3142dbfc710d74ed1601143a2a3a134a72ff3caa77567156da7180610e17f2b4dd07fbce4ea3a608bda49c56bed1dc66 Test-Roo-1.004.tar.gz"
|