diff options
Diffstat (limited to 'user')
-rw-r--r-- | user/perl-role-hooks/APKBUILD | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/user/perl-role-hooks/APKBUILD b/user/perl-role-hooks/APKBUILD new file mode 100644 index 000000000..6348335d2 --- /dev/null +++ b/user/perl-role-hooks/APKBUILD @@ -0,0 +1,36 @@ +# Contributor: Síle Ekaterin Liszka <sheila@vulpine.house> +# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house> +pkgname=perl-role-hooks +_pkgreal=Role-Hooks +_author=TOBYINK +_au=${_author%%"${_author#??}"} +_a=${_author%%"${_author#?}"} +pkgver=0.008 +pkgrel=0 +pkgdesc="Callbacks for Moo/Moose/Mouse roles" +url="https://metacpan.org/pod/Role::Hooks" +arch="noarch" +license="GPL-1.0+ OR Artistic-1.0-Perl" +depends="perl perl-class-method-modifiers" +checkdepends="perl-class-tiny perl-moo perl-moose perl-mouse perl-role-tiny + 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="d614dd26adfe03eeef091554b640a130a574cbe11797ad99185cf86637c4a901628800e16967c6061a479c9385fdced9e2b01ec97e18a4deafe4f098885913e5 Role-Hooks-0.008.tar.gz" |