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