# Automatically generated by apkbuild-cpan, template 2 # Contributor: Axel Ulrich # Maintainer: Axel Ulrich pkgname=perl-protocol-http2 _pkgreal=Protocol-HTTP2 pkgver=1.10 pkgrel=2 pkgdesc="HTTP/2 protocol implementation (RFC 7540)" url="https://metacpan.org/release/Protocol-HTTP2/" arch="noarch" license="GPL-1.0-or-later OR Artistic-1.0-Perl" depends="perl" makedepends="perl-module-build-tiny" checkdepends="perl-anyevent perl-net-ssleay perl-test-tcp perl-test-leaktrace" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/C/CR/CRUX/Protocol-HTTP2-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" options="!check" # todo prepare() { default_prepare perl Build.PL --installdirs=vendor } build() { export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') ./Build } check() { ./Build test } package() { ./Build install --destdir="$pkgdir" find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } sha512sums=" 56ef060be4b0f512d181b437ad6cb0421ba3fc3fff027f3da2da60e3db1d8025986ce10849c04327d3a044b25e8a153b3dd33058b30f0e6810efd92eeda22d6d Protocol-HTTP2-1.10.tar.gz "