# Automatically generated by apkbuild-cpan, template 3
# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=perl-io-async-loop-ev
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=IO-Async-Loop-EV
pkgver=0.03
pkgrel=0
pkgdesc="Use IO::Async with EV"
url="https://metacpan.org/release/IO-Async-Loop-EV/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-io-async perl-ev"
makedepends="perl-module-build"
checkdepends="perl-io-async-looptests"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/P/PE/PEVANS/IO-Async-Loop-EV-$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="
b3c25941ee4bfaaa21257b31fe991598fa63b19513935c321ab6c1f7694c70f6ed1903058de576825fe6458c5aeee6e171cfdfb15bb97ea7e6432950f5d4fffc  IO-Async-Loop-EV-0.03.tar.gz
"
