summaryrefslogtreecommitdiff
path: root/user/perl-sub-handlesvia
diff options
context:
space:
mode:
Diffstat (limited to 'user/perl-sub-handlesvia')
-rw-r--r--user/perl-sub-handlesvia/APKBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/user/perl-sub-handlesvia/APKBUILD b/user/perl-sub-handlesvia/APKBUILD
new file mode 100644
index 000000000..d47f0ceff
--- /dev/null
+++ b/user/perl-sub-handlesvia/APKBUILD
@@ -0,0 +1,36 @@
+# Contributor: Síle Ekaterin Liszka <sheila@vulpine.house>
+# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
+pkgname=perl-sub-handlesvia
+_pkgreal=Sub-HandlesVia
+_author=TOBYINK
+_au=${_author%%"${_author#??}"}
+_a=${_author%%"${_author#?}"}
+pkgver=0.016
+pkgrel=0
+pkgdesc="Alternative handles_via implementation for Moo"
+url="https://metacpan.org/pod/Sub::HandlesVia"
+arch="all"
+license="Artistic-1.0-Perl OR GPL-1.0+"
+depends="perl perl-class-method-modifiers perl-class-tiny perl-exporter-tiny
+ perl-role-tiny perl-type-tiny"
+checkdepends="perl-moo perl-moose perl-mouse perl-test-fatal perl-test-requires"
+makedepends=""
+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="91932d7c56e4fc1bb9e737282ee45ffdcc6d4143ee0307cbcbee9fb3b3953bd955b62bc20809cef61d4e643a4d246dbab062a636a46f951a93bdf2f22a1b04d2 Sub-HandlesVia-0.016.tar.gz"