# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-moose
_pkgreal=Moose
_author=ETHER
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=2.2012
pkgrel=0
pkgdesc="A postmodern object system for Perl 5"
url="https://metacpan.org/release/Moose"
arch="all"
license="Artistic-1.0-Perl"
depends="perl-class-load perl-class-load-xs perl-data-optlist
	perl-devel-globaldestruction perl-devel-overloadinfo
	perl-devel-stacktrace perl-eval-closure perl-module-runtime
	perl-module-runtime-conflicts perl-mro-compat
	perl-package-deprecationmanager perl-params-util perl-sub-exporter
	perl-sub-identify perl-sub-name perl-try-tiny"
checkdepends="perl-cpan-meta-check perl-dist-checkconflicts perl-test-output
	perl-test-cleannamespaces perl-test-fatal perl-test-requires"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	make test
}

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

sha512sums="195079c32ce0110ae5d76bc1753b9e5c9aa8b3132049912d85600b7d29470b3426e10ccac50a24acbadbb8e00b68c99a98ca975a001b12096b02f2fa1c1264f3  Moose-2.2012.tar.gz"