# Automatically generated by apkbuild-cpan, template 1 # Maintainer: Natanael Copa pkgname=perl-future _pkgreal=Future pkgver=0.38 pkgrel=0 pkgdesc="Represent an operation awaiting completion" url="http://search.cpan.org/dist/Future/" arch="noarch" license="GPL PerlArtistic" cpandepends="" cpanmakedepends="perl-test-fatal perl-test-refcount perl-test-identity" depends="$cpandepends" makedepends="perl-dev $cpanmakedepends perl-module-build" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/P/PE/PEVANS/$_pkgreal-$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="a2b2c836936e1b8e8c3ba60cb1f78f2254f33f8c039453e1dc43dbd89ec12b47b4a744341ae57a24684db1505c9d83bfa0462e5e0e36357eef7d91d6772a4bcb Future-0.38.tar.gz"