summaryrefslogblamecommitdiff
path: root/user/perl-moox-types-mooselike/APKBUILD
blob: 4a89895832c491477b00f066dd514073beb27627 (plain) (tree)


































                                                                                                                                                                               
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-moox-types-mooselike
_pkgname=MooX-Types-MooseLike
pkgver=0.29
pkgrel=0
pkgdesc="Moose-like types for Perl Moo"
url="https://metacpan.org/release/MooX-Types-MooseLike"
arch="noarch"
license="Artistic-1.0-Perl OR GPL-2.0-only"
depends="perl-module-runtime perl-moo"
checkdepends="perl-test-fatal"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/M/MA/MATEU/MooX-Types-MooseLike-$pkgver.tar.gz"
builddir="$srcdir/MooX-Types-MooseLike-$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="69ddd0d663d1ea23dfc7e47ec35192f1951f195f70f788bac47cc93e98d9e888394c07fc39f1740b7c1fd04f8724f2b0dfa14183fe33bceb9f77c1f1d1b8752e  MooX-Types-MooseLike-0.29.tar.gz"