aboutsummaryrefslogtreecommitdiffstats
path: root/testing/perl-statistics-descriptive/APKBUILD
blob: 71260951623ca61123e795a99ac48d8ad62d26bd (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
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-statistics-descriptive
_pkgreal=Statistics-Descriptive
pkgver=3.0702
pkgrel=0
pkgdesc="Module of basic descriptive statistical functions."
url="http://search.cpan.org/dist/Statistics-Descriptive/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-list-moreutils perl-module-build perl-test-pod perl-test-pod-coverage"
cpanmakedepends=""
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/S/SH/SHLOMIF/$_pkgreal-$pkgver.tar.gz"

_builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	cd "$_builddir"
	perl Build.PL installdirs=vendor || return 1
}

build() {
	cd "$_builddir"
		export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
	./Build && ./Build test
}

package() {
	cd "$_builddir"
	./Build install destdir="$pkgdir" || return 1
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="e0742ec356a38ad38f52e56a3ef58af6e539fbfa090d9a1d154560f353a3346d1c800d5d9f7bb0e2f32fb92b611fec16c939a19b7af104ec6ebe627c6c719df6  Statistics-Descriptive-3.0702.tar.gz"