diff --git a/testing/perl-catalyst-plugin-session-store-delegate/APKBUILD b/testing/perl-catalyst-plugin-session-store-delegate/APKBUILD new file mode 100644 index 00000000000..2a8120388ee --- /dev/null +++ b/testing/perl-catalyst-plugin-session-store-delegate/APKBUILD @@ -0,0 +1,40 @@ +# Contributor: Wen Heping +# Maintainer: Wen Heping +pkgname=perl-catalyst-plugin-session-store-delegate +pkgver=0.06 +pkgrel=0 +# _pkgreal is used by apkbuild-cpan to find modules at MetaCpan +_pkgreal=Catalyst-Plugin-Session-Store-Delegate +pkgdesc="Delegate session storage to an" +url="https://metacpan.org/release/Catalyst-Plugin-Session-Store-Delegate/" +arch="noarch" +license="GPL-1.0-or-later OR Artistic-1.0-Perl" +depends=" + perl perl-catalyst-plugin-session perl-class-accessor perl-mro-compat perl-moose + perl-moosex-emulate-class-accessor-fast perl-namespace-clean + " +subpackages="$pkgname-doc" +source="https://cpan.metacpan.org/authors/id/B/BO/BOBTFISH/Catalyst-Plugin-Session-Store-Delegate-$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 +} + +sha512sums=" +915d632600149da20e6d976c4104567e6fc3edbc9d64675e1d1fbb13b00f0bda4cdbd161ffb3e349ccc4fc130d5c72345a512afb8f8fdfe1694c7646741ff382 Catalyst-Plugin-Session-Store-Delegate-0.06.tar.gz +"