# 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.003002 pkgrel=0 pkgdesc="Minimalist Object Orientation (with Moose compatibility)" url="http://search.cpan.org/dist/Moo/" arch="noarch" license="GPL PerlArtistic" cpandepends="perl-module-runtime perl-sub-quote perl-role-tiny perl-devel-globaldestruction perl-class-method-modifiers" cpanmakedepends="" cpancheckdepends="perl-test-fatal" depends="$cpandepends" makedepends="perl-dev $cpanmakedepends" checkdepends="perl-strictures $cpancheckdepends" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/H/HA/HAARG/$_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="103878f4f4b0863125eff67e7a1a24525c565d28ee78eb3f54306daf3bcd6e949f5c451ca3e79448b2f66a74e8f942181c4af7aa79c23b3591ef4331d853ea2d Moo-2.003002.tar.gz"