# Automatically generated by apkbuild-cpan, template 1 # Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=perl-scalar-list-utils _pkgreal=Scalar-List-Utils pkgver=1.53 pkgrel=1 pkgdesc="Common Scalar and List utility subroutines" url="https://metacpan.org/release/Scalar-List-Utils" arch="all" license="GPL-1.0-or-later OR Artistic-1.0-Perl" makedepends="perl-dev" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/P/PE/PEVANS/Scalar-List-Utils-$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() { cd "$builddir" make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } doc() { default_doc replaces="perl-doc" } sha512sums="b0bcc0f6949a122ef86d64bc5beccc793638af1907ae06047045ae568700f9c01da4a5d8a5cc8e9bc1cf19280a3acbc4c7cd97e239ab4022ad3b6cf9980eb305 Scalar-List-Utils-1.53.tar.gz"