blob: 5d5c121858174ca40d1c86389f017a5c411bf2af (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# Automatically generated by apkbuild-cpan, template 3
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-future
#_pkgreal is used by apkbuild-cpan to find modules at MetaCpan
_pkgreal=Future
pkgver=0.49
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"
depends="perl"
makedepends="perl-dev perl-module-build"
checkdepends="perl-test-refcount perl-test-fatal perl-test-identity"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/P/PE/PEVANS/Future-$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="
23bb764314be941ed95354c7b153b81455247737f0e6ce61ed47fb5be41254a79cc5cd258c266c7826efdc3a42e867d3ecde9e47bd525921366fa03fdb44cc79 Future-0.49.tar.gz
"
|