blob: 2731ec9eac903edb39c7e84eb54403195d1b18cc (
plain) (
tree)
|
|
# Contributor: Dan Theisen <djt@hxx.in>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=perl-moo
_pkgreal=Moo
_author=HAARG
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=2.005005
pkgrel=0
pkgdesc="Minimalist Object Orientation (with Moose compatibility)"
url="https://metacpan.org/pod/Moo"
arch="noarch"
license="Artistic-1.0-Perl OR GPL-1.0+"
depends="perl perl-module-runtime perl-devel-globaldestruction perl-class-method-modifiers
perl-sub-quote perl-role-tiny"
checkdepends="perl-test-fatal"
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="e6b6cc491bb55ab0a7a57418d210da52990e8aa559fcf83c25838624caa0de1c919a229bab2b9c7e7c99cc9904706b64db169860d2c404449731e400ea1c5f79 Moo-2.005005.tar.gz"
|