summaryrefslogblamecommitdiff
path: root/user/perl-moox-late/APKBUILD
blob: f9360c17f4c5710faf1cc36b18cd72ea32fe87c9 (plain) (tree)

































                                                                                                                                                                     
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-moox-late
pkgver=0.015
pkgrel=0
pkgdesc="Translate Moose code into Moo"
url="https://metacpan.org/release/MooX-late"
arch="noarch"
license="Artistic-1.0-Perl"
depends="perl-moo perl-type-tiny"
makedepends="perl-dev"
checkdepends="perl-test-fatal perl-test-requires"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/T/TO/TOBYINK/MooX-late-$pkgver.tar.gz"
builddir="$srcdir/MooX-late-$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="4d685f4e68abe10487a98def8f0e7b0bafbd9928af27e61a5ac410bcafa9833a4aebdc8cd5bdbebd1a6ee53b4b0d5ae9bfa3864cae428b21c926730365fefb6d  MooX-late-0.015.tar.gz"