aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-list-moreutils/APKBUILD
blob: b1eb94ba0640b821e2c8db46a6224e1b873a0360 (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
# Automatically generated by apkbuild-cpan, template 1
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-list-moreutils
_pkgreal=List-MoreUtils
pkgver=0.416
pkgrel=1
pkgdesc="Provide the stuff missing in List::Util"
url="http://search.cpan.org/dist/List-MoreUtils/"
arch="all"
license="GPL PerlArtistic"
cpandepends="perl-exporter-tiny"
cpanmakedepends="   perl-test-leaktrace"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/R/RE/REHSACK/$_pkgreal-$pkgver.tar.gz"

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

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

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

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

md5sums="0c5c4650eb52ed58cac67d81be1004f3  List-MoreUtils-0.416.tar.gz"
sha256sums="d2ce2f93a4fba8e20a602eba2405d08f5b28c23764a5273fb0abbc413f74c5a5  List-MoreUtils-0.416.tar.gz"
sha512sums="69b50405dd2442dce1c9505d8a392325a76a748a4612a8b7b53472d4e4a9ed6866593292b3c80c28ba3bc86a04f3b3041f3d3d3f1ec001e8a320f9d4426651aa  List-MoreUtils-0.416.tar.gz"