aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-list-moreutils/APKBUILD
blob: db497370f5081c62dc42808f63ad65bb96ff5325 (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
# 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.428
pkgrel=0
pkgdesc="Provide the stuff missing in List::Util"
url="https://search.cpan.org/dist/List-MoreUtils/"
arch="noarch"
license="GPL PerlArtistic"
cpandepends="perl-exporter-tiny perl-list-moreutils-xs"
cpanmakedepends="perl-test-leaktrace"
depends="$cpandepends"
makedepends="perl-dev $cpanmakedepends"
subpackages="$pkgname-doc"
source="https://search.cpan.org/CPAN/authors/id/R/RE/REHSACK/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

check() {
	cd "$builddir"
	make test
}

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
}

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

sha512sums="f7e11f10f1d7bd3b8f9f8bc2fc325e1a9230056f68591da624aed01fb4e4cbac20caeae0c3e2aa3acc8b71febd6d4149284367f051d3c1e608e3a4ca8b62dbd8  List-MoreUtils-0.428.tar.gz"