# Automatically generated by apkbuild-cpan, template 1 # Maintainer: Natanael Copa pkgname=perl-future _pkgreal=Future pkgver=0.41 pkgrel=0 pkgdesc="Represent an operation awaiting completion" url="https://metacpan.org/release/Future" arch="noarch" license="GPL-1.0-or-later OR Artistic-1.0-Perl" cpanmakedepends="perl-test-fatal perl-test-refcount perl-test-identity" makedepends="perl-dev $cpanmakedepends perl-module-build" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/P/PE/PEVANS/Future-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" prepare() { default_prepare cd "$builddir" export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') perl Build.PL installdirs=vendor } build() { cd "$builddir" export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') ./Build } check() { cd "$builddir" ./Build test } package() { cd "$builddir" ./Build install destdir="$pkgdir" find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } sha512sums="b704acaed4a2f87fa64b72cc183567214d3e67849b2ae3053f97fef88d278f42589053b9f7c8a218b2eca31f93692e3d252966e0a3d1d54a7e15d172162570b8 Future-0.41.tar.gz"