# Description: Perl bindings for depends
# URL: https://metacpan.org/pod/ExtUtils::Depends
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on:  p5-xml-parser

name=p5-extutils-depends
version=0.8002
release=1
source=(https://www.cpan.org/modules/by-module/ExtUtils/ExtUtils-Depends-$version.tar.gz)

build() {
  cd ExtUtils-Depends-$version
  perl Makefile.PL

  make OPTIMIZE="$CFLAGS"
  make install DESTDIR=$PKG

  find $PKG -type f -a ! -perm -u+w | xargs chmod u+w
  find $PKG \
    -name perllocal.pod \
    -o -name "*.bs" \
    -o -name .packlist | xargs rm
  find $PKG -empty | xargs rmdir -p ||:
}
