# Automatically generated by apkbuild-cpan, template 4
# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=perl-future-q
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Future-Q
pkgver=0.120
pkgrel=0
pkgdesc="Future (or Promise or Deferred) with API like JavaScript's Q module"
url="https://metacpan.org/release/Future-Q/"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-devel-globaldestruction perl-future perl-try-tiny"
makedepends="perl-module-build perl-module-build-prereqs-fromcpanfile"
checkdepends="
	perl-sub-identify perl-test-identity perl-test-memory-cycle
	perl-test-mockmodule
	"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/T/TO/TOSHIOITO/Future-Q-$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="
483951025ec6823472b49aa91540b1d6added4c87a9dc3d2021893a0858620228ae85d98a4fc9c7a6e92f5311f043e452ebb9b56fde36dc583fc7bf864e7a1a2  Future-Q-0.120.tar.gz
"
