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