# Description: the distribution metadata for a CPAN dist
# URL: https://metacpan.org/release/CPAN-Meta
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on:

name=p5-cpan-meta
version=2.150010
release=1
source=(http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/CPAN-Meta-$version.tar.gz)

build() {
  cd CPAN-Meta-$version
  export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
  unset PERL5LIB PERL_MM_OPT
  perl Makefile.PL
  make
  make DESTDIR=$PKG install
  find $PKG \( -name '.packlist' -o -name '*.pod' \) -delete
  rm -fr $PKG/usr/share/man
}
