aboutsummaryrefslogtreecommitdiffstats
path: root/main/perl-list-allutils/APKBUILD
blob: 306d0852e0b3b937f4eacbd1e076b0901c88942b (plain) (blame)
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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-list-allutils
_pkgreal=List-AllUtils
pkgver=0.18
pkgrel=1
pkgdesc="Combines List::Util, List::SomeUtils and List::UtilsBy in one bite-sized package"
url="https://metacpan.org/release/List-AllUtils"
arch="noarch"
license="Artistic-2.0"
depends="perl perl-scalar-list-utils perl-list-utilsby perl-list-someutils"
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/List-AllUtils-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"

prepare() {
	default_prepare

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

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

check() {
	make test
}

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

sha512sums="b2cc560a070f36c339c12c17a17a958f3e9ad40b1981a2631c56c838703c9a9b06fd8bf02ced797cf581215b321faf6c281e5b87368a25515855327bd92db08f  List-AllUtils-0.18.tar.gz"