# 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.69
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="
095df5fc37b220dace9e3243e92a74be22bfc9ac5df2543002d493895993b3a42f51958e01e444e447f7f8acecb295b681f80a160495762520857584258533a4  Future-AsyncAwait-0.69.tar.gz
"
