# Automatically generated by apkbuild-cpan, template 3
# Contributor: Celeste <cielesti@protonmail.com>
# Maintainer: Celeste <cielesti@protonmail.com>
pkgname=perl-net-async-http
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Net-Async-HTTP
pkgver=0.49
pkgrel=0
pkgdesc="Use HTTP with IO::Async"
url="https://metacpan.org/release/Net-Async-HTTP/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="
	perl perl-future perl-http-message perl-io-async-ssl
	perl-metrics-any perl-struct-dumb perl-uri
	"
makedepends="perl-module-build"
checkdepends="
	perl-http-cookies perl-net-async-http-server
	perl-test-metrics-any perl-test2-suite
	"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/P/PE/PEVANS/Net-Async-HTTP-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

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

check() {
	./Build test
}

package() {
	./Build install --destdir="$pkgdir"
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="
593b32c42e13203f1b569e1d3e8ac50d8c95a7f37ab59881fea3d588b3590b527e5319aa69668924fa1decd892b5a5bfb1f38d370ec74227c9eff46c971d8a80  Net-Async-HTTP-0.49.tar.gz
"
