# Automatically generated by apkbuild-cpan, template 4
# Contributor: Axel Ulrich <ulrich.axel@gmail.com>
# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=perl-protocol-http2
pkgver=1.11
pkgrel=1
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Protocol-HTTP2
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"

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	perl Build.PL \
		--installdirs=vendor \
		--create_packlist=0
	./Build
}

check() {
	./Build test
}

package() {
	./Build install --destdir="$pkgdir"
}

sha512sums="
6568b156e9986dbddab8acbd672ee7de06ffcdf7725eb5efd75a7468bcee7846249081437656c3fae8badefded0df27ea3bd7700e23ca862cd22d68af019273a  Protocol-HTTP2-1.11.tar.gz
"
