aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-future/APKBUILD
blob: 5f26facfdc42b96af560842f42284b6b5d703e51 (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
37
38
39
40
41
42
43
44
# Automatically generated by apkbuild-cpan, template 1
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-future
_pkgreal=Future
pkgver=0.37
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="05d797b26b653ab6e7d2451001e556ba5a9a80d44dc8754be850e1990ff1e4cf6c3b5e601035e3e50ab4c610fe55a39c1c27f15770f88b739d09a5a5086c62f5  Future-0.37.tar.gz"