# Automatically generated by apkbuild-cpan, template 3 # Contributor: Natanael Copa # Maintainer: Natanael Copa pkgname=perl-params-util #_pkgreal is used by apkbuild-cpan to find modules at MetaCpan _pkgreal=Params-Util pkgver=1.102 pkgrel=1 pkgdesc="Simple, compact and correct param-checking functions" url="https://metacpan.org/release/Params-Util/" arch="all" license="GPL-1.0-or-later OR Artistic-1.0-Perl" depends="perl" makedepends="perl-dev perl-config-autoconf" checkdepends="perl-test-leaktrace" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/R/RE/REHSACK/Params-Util-$pkgver.tar.gz" builddir="$srcdir/$_pkgreal-$pkgver" build() { export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor make } check() { export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}') make test } package() { make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } sha512sums="e2587b62545cf0572cc8f719ea8e5411d710789c3cbcab4038c5b01f86073a010d32191551f6aeea1bdae22d49e7d34358250b4e7ece9f261a598854af187194 Params-Util-1.102.tar.gz"