diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-10-01 22:35:26 +0000 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-10-01 22:35:26 +0000 |
commit | 04ebf9d8ad42d2d00112898c4974564b28abeefc (patch) | |
tree | e0c96e51f0623713899e2b330aafe5dc423018ac | |
parent | 308e97d0092865fadbc3a2bdd759a79bc723499c (diff) | |
download | packages-04ebf9d8ad42d2d00112898c4974564b28abeefc.tar.gz packages-04ebf9d8ad42d2d00112898c4974564b28abeefc.tar.bz2 packages-04ebf9d8ad42d2d00112898c4974564b28abeefc.tar.xz packages-04ebf9d8ad42d2d00112898c4974564b28abeefc.zip |
user/perl-moosex-strictconstructor: new package
-rw-r--r-- | user/perl-moosex-strictconstructor/APKBUILD | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/user/perl-moosex-strictconstructor/APKBUILD b/user/perl-moosex-strictconstructor/APKBUILD new file mode 100644 index 000000000..964414d4a --- /dev/null +++ b/user/perl-moosex-strictconstructor/APKBUILD @@ -0,0 +1,34 @@ +# Contributor: A. Wilcox <awilfox@adelielinux.org> +# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org> +pkgname=perl-moosex-strictconstructor +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-moose perl-namespace-autoclean" +makedepends="perl-dev" +checkdepends="perl-moo perl-test-fatal perl-test-needs" +subpackages="$pkgname-doc" +source="https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/MooseX-StrictConstructor-$pkgver.tar.gz" +builddir="$srcdir/MooseX-StrictConstructor-$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="b515ce0de7962b2d2da0da3dfd0fab978a014f2d5dc9e92e76cc137a260d3190a993d3b791db5eaf416e838180bdec1f827961aad4552c67f7c7cf1477107bfc MooseX-StrictConstructor-0.21.tar.gz" |