# Contributor: Síle Ekaterin Liszka # Maintainer: Síle Ekaterin Liszka pkgname=perl-scalar-list-utils _pkgreal=Scalar-List-Utils _author=PEVANS _au=${_author%%"${_author#??}"} _a=${_author%%"${_author#?}"} pkgver=1.62 pkgrel=0 pkgdesc="Perl collection of utility functions for scalars, lists, and subs" url="https://metacpan.org/release/Scalar-List-Utils" arch="all" license="GPL-1.0+ OR Artistic-1.0-Perl" depends="perl" makedepends="perl-dev" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/$_a/$_au/$_author/$_pkgreal-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" build() { export CFLAGS="$(perl -MConfig -E 'say $Config{ccflags}')" PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor make } check() { make test } package() { make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } sha512sums="3f641ab51a229356e3b23e576f2da96ff59bf54484a14caa78c89111ff060998c7c6f780d608f3ee90d4538b45a78e1327427b9ef92aa34cf1cf59dd8a3d084e Scalar-List-Utils-1.62.tar.gz"