# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=perl-moox-late
_pkgreal=MooX-late
_author=TOBYINK
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=0.100
pkgrel=0
pkgdesc="Translate Moose code into Moo"
url="https://metacpan.org/release/MooX-late"
arch="noarch"
license="Artistic-1.0-Perl OR GPL-1.0+"
depends="perl-moo perl-type-tiny perl-sub-handlesvia"
checkdepends="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="69450edbe7b2192094608a3ec543348d87223c9a124b86dc04a1cdf74b697adb331e5e1498533a557e5d4eded374770086d6696bdda597afe924520cad0c229c  MooX-late-0.100.tar.gz"