# Automatically generated by apkbuild-cpan, template 2 # Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=perl-list-moreutils-xs _pkgreal=List-MoreUtils-XS pkgver=0.428 pkgrel=3 pkgdesc="Provide the stuff missing in List::Util in XS" url="https://metacpan.org/release/List-MoreUtils-XS/" arch="all" license="Apache-2.0" cpandepends="" cpanmakedepends="" cpancheckdepends="" depends="$cpandepends" makedepends="perl-dev $cpanmakedepends" checkdepends="$cpancheckdepends" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/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="a608568e3c4a2e160e4f9afa26640be5b97ec83e301a6b81849e37951698b9423c0a969d7e8797a49b4fb6c5123780630a3726c64713922b90b21b947682c3dd List-MoreUtils-XS-0.428.tar.gz"