mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 17:16:44 +02:00
44 lines
1.3 KiB
Text
44 lines
1.3 KiB
Text
# 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=3
|
|
pkgdesc="Composable, reusable tests with roles and Moo"
|
|
url="https://metacpan.org/release/Test-Roo/"
|
|
arch="noarch"
|
|
license="Apache-2.0"
|
|
depends="perl perl-moox-types-mooselike perl-moo perl-sub-install perl-strictures"
|
|
checkdepends="perl-capture-tiny"
|
|
subpackages="$pkgname-doc"
|
|
source="https://cpan.metacpan.org/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"
|