summaryrefslogtreecommitdiff
path: root/user/perl-moosex-strictconstructor/APKBUILD
blob: 4aa583aefda5c96c609c07a0370b4bfcb79637b9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org>
pkgname=perl-moosex-strictconstructor
_pkgreal=MooseX-StrictConstructor
_author=DROLSKY
_au=${_author%%"${_author#??}"}
_a=${_author%%"${_author#?}"}
pkgver=0.21
pkgrel=0
pkgdesc="Ensure unknown attributes passed to Perl Moose ctors are errors"
url="https://metacpan.org/release/MooseX-StrictConstructor"
arch="noarch"
license="Artistic-2.0"
depends="perl perl-moose perl-namespace-autoclean"
checkdepends="perl-moo perl-test-fatal perl-test-needs"
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="b515ce0de7962b2d2da0da3dfd0fab978a014f2d5dc9e92e76cc137a260d3190a993d3b791db5eaf416e838180bdec1f827961aad4552c67f7c7cf1477107bfc  MooseX-StrictConstructor-0.21.tar.gz"