From b8a171af6f94f495a08bb0aaf12d4d10c9b34277 Mon Sep 17 00:00:00 2001 From: Síle Ekaterin Liszka Date: Sun, 22 May 2022 01:45:50 +0000 Subject: user/perl-sub-handlesvia: new package --- user/perl-sub-handlesvia/APKBUILD | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 user/perl-sub-handlesvia/APKBUILD (limited to 'user') 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 +# Maintainer: Síle Ekaterin Liszka +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" -- cgit v1.2.3-70-g09d2