aboutsummaryrefslogtreecommitdiffstats
path: root/community/perl-list-moreutils-xs/APKBUILD
blob: 34231165fedaa5389b987be35b5e472ee13ad4b8 (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
45
46
47
48
# Automatically generated by apkbuild-cpan, template 2
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-list-moreutils-xs
_pkgreal=List-MoreUtils-XS
pkgver=0.426
pkgrel=0
pkgdesc="Provide the stuff missing in List::Util in XS"
url="http://search.cpan.org/dist/List-MoreUtils-XS/"
arch="all"
license="apache_2_0"
cpandepends=""
cpanmakedepends=""
cpancheckdepends=""
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
checkdepends="$cpancheckdepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/R/RE/REHSACK/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	default_prepare

	cd "$builddir"
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
}

build() {
	cd "$builddir"
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

check() {
	cd "$builddir"
	export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
	make test
}

sha512sums="c98bafe58eb636ffb0a2410b74904e9dff6b719d3574ddf5f56bdcfe19fbba76135b4f631cb45e4c9cea8330125cd3d2be2d8571026cd521a25eb512b88e99cf  List-MoreUtils-XS-0.426.tar.gz"