# Automatically generated by apkbuild-cpan, template 1 # Maintainer: Natanael Copa pkgname=perl-list-allutils _pkgreal=List-AllUtils pkgver=0.16 pkgrel=0 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="e4644aebf8b152888f41082dca7380146a3a784af2c7a3705d8332b5effd35684702e85085a1865281be03c9f4d7e230141459d8680365c3437e928f7f948417 List-AllUtils-0.16.tar.gz"