summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
Diffstat (limited to 'user')
-rw-r--r--user/perl-moo/APKBUILD36
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"