blob: 883182ff48460490f2eabae1149fffb80cab736f (
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
|
# Automatically generated by apkbuild-cpan, template 2
# Contributor: Kiyoshi Aman <kiyoshi.aman@gmail.com>
# Maintainer: Kiyoshi Aman <kiyoshi.aman@gmail.com>
pkgname=perl-moo
_pkgreal=Moo
pkgver=2.003006
pkgrel=0
pkgdesc="Minimalist Object Orientation (with Moose compatibility)"
url="https://metacpan.org/release/Moo"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
cpandepends="perl-module-runtime perl-sub-quote perl-role-tiny
perl-devel-globaldestruction perl-class-method-modifiers"
cpancheckdepends="perl-test-fatal"
depends="$cpandepends"
makedepends="perl-dev"
checkdepends="perl-strictures $cpancheckdepends"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/H/HA/HAARG/Moo-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
default_prepare
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}
build() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make
}
package() {
make DESTDIR="$pkgdir" install
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
check() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make test
}
sha512sums="151875a67aeaf78afdd678964ca3bae36dfd13d2290b5ffb903f648deeb1157ee3829f7310b7fae3a899404cfeaea211b57cb3f6e6d611bf39e8209a7bef2863 Moo-2.003006.tar.gz"
|