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