# Automatically generated by apkbuild-cpan, template 4
# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=perl-future-mojo
pkgver=1.003
pkgrel=0
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Future-Mojo
pkgdesc="Use Future with Mojo::IOLoop"
url="https://metacpan.org/release/Future-Mojo/"
arch="noarch"
license="Artistic-2.0"
depends="perl perl-future perl-mojolicious perl-role-tiny"
makedepends="perl-module-build-tiny"
checkdepends="perl-test-identity perl-test-needs"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/D/DB/DBOOK/Future-Mojo-$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="
a81cd1d7373388dd7677f8b1ff1b7350d4b57dc7ab3cb90c5529d7e3f1c793696773c829b86780338e8632fdcc34ae17af50f19191a32ae9f6d4f874e8703e8e  Future-Mojo-1.003.tar.gz
"
