1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-16 04:35:13 +03:00
aports/testing/perl-future-asyncawait/APKBUILD
2022-08-18 04:33:12 +02:00

37 lines
1.2 KiB
Text

# Automatically generated by apkbuild-cpan, template 3
# Contributor: rubicon <rubicon@mailo.com>
# Maintainer: rubicon <rubicon@mailo.com>
pkgname=perl-future-asyncawait
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Future-AsyncAwait
pkgver=0.58
pkgrel=1
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-future perl-xs-parse-sublike perl-xs-parse-keyword"
makedepends="perl-dev perl-module-build"
checkdepends="perl-test-refcount perl-future perl-test-fatal"
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
./Build
}
check() {
./Build test
}
package() {
./Build install --destdir="$pkgdir"
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
sha512sums="
cc940dcc90e8e08f51567879a6d8ac68222b3b49dc69c8dab9f0c4d3b40c5442a04d25ca6e2e7ddd0bb0a1debab77b6ff58ad7500b5d902453db1bc84ef622ed Future-AsyncAwait-0.58.tar.gz
"