# Description: Simple, compact and correct param-checking functions
# URL: https://metacpan.org/release/Params-Util
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on:

name=p5-params-util
version=1.102
release=1
source=(https://cpan.metacpan.org/authors/id/R/RE/REHSACK/Params-Util-$version.tar.gz)

build() {
  cd Params-Util-$version
  export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
  unset PERL5LIB PERL_MM_OPT
  /usr/bin/perl Makefile.PL
  make
  make install INSTALLDIRS=vendor DESTDIR=$PKG
  find $PKG -name .packlist -o \
    -name perllocal.pod -o \
    -name README -o \
    -name '*.bs' | xargs rm
}
