diff --git a/testing/perl-ryu/APKBUILD b/testing/perl-ryu/APKBUILD new file mode 100644 index 00000000000..d5bf597e2a5 --- /dev/null +++ b/testing/perl-ryu/APKBUILD @@ -0,0 +1,58 @@ +# Automatically generated by apkbuild-cpan, template 4 +# Contributor: Celeste +# Maintainer: Celeste +pkgname=perl-ryu +#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan +_pkgreal=Ryu +pkgver=3.005 +pkgrel=0 +pkgdesc="Stream and data flow handling for async code" +url="https://metacpan.org/release/Ryu/" +# armhf, armv7, x86: Invalid type 'q' in pack at Buffer.pm line 202 +# According to https://perldoc.perl.org/functions/pack Quads are +# probably available only if Perl is compiled with -Duse64bitint +arch="noarch !armhf !armv7 !x86" +license="GPL-1.0-or-later OR Artistic-1.0-Perl" +depends=" + perl perl-curry perl-future perl-future-queue + perl-indirect perl-json-maybexs perl-list-utilsby + perl-log-any perl-ref-util perl-syntax-keyword-try + perl-text-csv + " +checkdepends=" + perl-log-any-adapter-tap perl-test-checkdeps perl-test-deep + perl-test-fatal perl-test-files perl-test-hexstring + perl-test-refcount perl-test-warnings perl-variable-disposition + " +subpackages="$pkgname-doc" +source="https://cpan.metacpan.org/authors/id/T/TE/TEAM/Ryu-$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=" +1886ffea40bf42a228eaa5d43ef1dbcb56a4f70973fa3426a40b819dd708fab26cffc0aefb6242d724c1a323cb70f20541688fc264e777cdc99820088a2eea2f Ryu-3.005.tar.gz +"