summaryrefslogblamecommitdiff
path: root/user/perl-moo/APKBUILD
blob: 6e419cac278e1a41bd4291fd9c018625f2446723 (plain) (tree)



































                                                                                                                                                                  
# Contributor: Dan Theisen <djt@hxx.in>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-moo
pkgver=2.003004
pkgrel=0
pkgdesc="Minimalist Object Orientation (with Moose compatibility)"
url="https://metacpan.org/pod/Moo"
arch="noarch"
license="Artistic-1.0-Perl AND GPL-2.0"
depends="perl perl-module-runtime perl-devel-globaldestruction perl-class-method-modifiers
         perl-sub-quote perl-role-tiny"
makedepends="perl-dev"
checkdepends="perl-test-fatal"
install=""
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/H/HA/HAARG/Moo-$pkgver.tar.gz"
builddir="$srcdir/Moo-$pkgver"

build() {
	cd "$builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	cd "$builddir"
        make test
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="686996e4dd0238cff7483e4e06db5439660e390c67e65ace67c3fd0b05ade379a168d36ae649812c8a5e2b715eefea7cb17e5db323a0cd31b90667d8954eb38a  Moo-2.003004.tar.gz"