From cbdf7abef60e38f615ee70c0ccd9f534e6b2097e Mon Sep 17 00:00:00 2001 From: Wen Heping Date: Sat, 29 Mar 2025 08:09:34 +0000 Subject: [PATCH] testing/perl-catalyst-plugin-authentication: new aport --- .../APKBUILD | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 testing/perl-catalyst-plugin-authentication/APKBUILD diff --git a/testing/perl-catalyst-plugin-authentication/APKBUILD b/testing/perl-catalyst-plugin-authentication/APKBUILD new file mode 100644 index 00000000000..3080448a906 --- /dev/null +++ b/testing/perl-catalyst-plugin-authentication/APKBUILD @@ -0,0 +1,48 @@ +# Contributor: Wen Heping +# Maintainer: Wen Heping +pkgname=perl-catalyst-plugin-authentication +pkgver=0.10024 +pkgrel=0 +#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan +_pkgreal=Catalyst-Plugin-Authentication +pkgdesc="Infrastructure plugin for the Catalyst authentication framework" +url="https://metacpan.org/release/Catalyst-Plugin-Authentication/" +arch="noarch" +license="GPL-1.0-or-later OR Artistic-1.0-Perl" +depends=" + perl perl-catalyst-runtime perl-mro-compat perl-moose perl-moosex-emulate-class-accessor-fast + perl-string-rewriteprefix perl-try-tiny perl-namespace-autoclean + " +checkdepends="perl-test-fatal" +subpackages="$pkgname-doc" +source="https://cpan.metacpan.org/authors/id/J/JJ/JJNAPIORK/Catalyst-Plugin-Authentication-$pkgver.tar.gz" +builddir="$srcdir/$_pkgreal-$pkgver" + +build() { + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL \ + INSTALLDIRS=vendor \ + NO_PACKLIST=1 \ + NO_PERLLOCAL=1 + make +} + +check() { + export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') + make test +} + +package() { + make DESTDIR="$pkgdir" install +} + +doc() { + local file; find "$pkgdir" -name "*.pod" | while read -r file; do + amove "${file#"$pkgdir"}" + done + default_doc +} + +sha512sums=" +882f3e2c1b6e6f3a896915dcd82ab67fad5816f1869ded03cfa63516ffb18e2bd1ca07f0a851c7c2270ce5bf2874c2aec6376b0a64ffe44c71fe08d762954e03 Catalyst-Plugin-Authentication-0.10024.tar.gz +"