diff options
author | Dan Theisen <djt@hxx.in> | 2018-09-25 21:25:02 -0700 |
---|---|---|
committer | Dan Theisen <djt@hxx.in> | 2018-09-25 21:25:02 -0700 |
commit | 078abbed89a604d69a315410198e3aba3f3e3fc2 (patch) | |
tree | 2612e1fda59d6b4e215aaab349f19a29d5c22a2d /user/perl-moo | |
parent | af104c3c76c1bc914839e3226e601267e5c0c741 (diff) | |
download | packages-078abbed89a604d69a315410198e3aba3f3e3fc2.tar.gz packages-078abbed89a604d69a315410198e3aba3f3e3fc2.tar.bz2 packages-078abbed89a604d69a315410198e3aba3f3e3fc2.tar.xz packages-078abbed89a604d69a315410198e3aba3f3e3fc2.zip |
user/perl-moo: new package
Diffstat (limited to 'user/perl-moo')
-rw-r--r-- | user/perl-moo/APKBUILD | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/user/perl-moo/APKBUILD b/user/perl-moo/APKBUILD new file mode 100644 index 000000000..6e419cac2 --- /dev/null +++ b/user/perl-moo/APKBUILD @@ -0,0 +1,36 @@ +# Contributor: Dan Theisen <djt@hxx.in> +# Maintainer: Adélie Perl Team <adelie-perl@lists.adelielinux.org> +pkgname=perl-moo +pkgver=2.003004 +pkgrel=0 +pkgdesc="Minimalist Object Orientation (with Moose compatibility)" +url="https://metacpan.org/pod/Moo" +arch="noarch" +license="Artistic-1.0-Perl AND GPL-2.0" +depends="perl perl-module-runtime perl-devel-globaldestruction perl-class-method-modifiers + perl-sub-quote perl-role-tiny" +makedepends="perl-dev" +checkdepends="perl-test-fatal" +install="" +subpackages="$pkgname-doc" +source="https://cpan.metacpan.org/authors/id/H/HA/HAARG/Moo-$pkgver.tar.gz" +builddir="$srcdir/Moo-$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="686996e4dd0238cff7483e4e06db5439660e390c67e65ace67c3fd0b05ade379a168d36ae649812c8a5e2b715eefea7cb17e5db323a0cd31b90667d8954eb38a Moo-2.003004.tar.gz" |