# Automatically generated by apkbuild-cpan, template 4
# Contributor: rubicon <rubicon@mailo.com>
# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=perl-future-asyncawait
pkgver=0.70
pkgrel=0
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Future-AsyncAwait
pkgdesc="Deferred subroutine syntax for Futures"
url="https://metacpan.org/release/Future-AsyncAwait/"
arch="all"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="
	perl
	perl-file-sharedir
	perl-future
	perl-xs-parse-keyword
	perl-xs-parse-sublike
	"
makedepends="
	perl-dev
	perl-module-build
	"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/P/PE/PEVANS/Future-AsyncAwait-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

build() {
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	perl Build.PL \
		--installdirs=vendor \
		--create_packlist=0
	./Build
}

check() {
	./Build test
}

package() {
	./Build install --destdir="$pkgdir"
}

sha512sums="
72e704463d8bcbea573712ab6ef7c7617468238b0be14c1995ffc70efc47f2ca26016a971b89e9a9cf5e5ec43eddb53755e94128aecd2f884387caf64c37fb22  Future-AsyncAwait-0.70.tar.gz
"
