# Automatically generated by apkbuild-cpan, template 3
# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=perl-io-async-loop-epoll
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=IO-Async-Loop-Epoll
pkgver=0.22
pkgrel=0
pkgdesc="Use IO::Async with Linux::Epoll"
url="https://metacpan.org/release/IO-Async-Loop-Epoll/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-io-async perl-linux-epoll perl-struct-dumb"
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-Epoll-$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="
c6c6749746a444a535e48d2beb6ea23e1ea70c0f9444b2f12f67c144d612d44251f503a3f99e51d475b4d002caa462bfc167efedda61f93d75b6aec2292bbbf2  IO-Async-Loop-Epoll-0.22.tar.gz
"
