# Automatically generated by apkbuild-cpan, template 1 # Contributor: Kiyoshi Aman # Maintainer: Kiyoshi Aman pkgname=perl-io-async _pkgreal=IO-Async pkgver=0.74 pkgrel=0 pkgdesc="Asynchronous event-driven programming" url="https://metacpan.org/release/IO-Async" arch="noarch" license="GPL-1.0-or-later OR Artistic-1.0-Perl" cpandepends="perl-struct-dumb perl-future" cpanmakedepends="perl-test-refcount perl-test-fatal perl-test-identity" depends="$cpandepends" makedepends="perl-dev $cpanmakedepends perl-module-build" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/P/PE/PEVANS/$_pkgreal-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" prepare() { cd "$builddir" perl Build.PL installdirs=vendor } build() { cd "$builddir" export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') ./Build && ./Build test } package() { cd "$builddir" ./Build install destdir="$pkgdir" find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } sha512sums="99a2e7385259cbe645443c7dfdf4e9ba083f8ee3db7fa806d6576c21403c96641612c77f814dc0d7727a4391c8a375ec1ae026c955c1b34a3e172ffd7e9602b9 IO-Async-0.74.tar.gz"