# Description: File::ShareDir::Install - Install read-only data files from a distribution
# URL: https://metacpan.org/pod/File::ShareDir::Install
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on:

name=p5-file-sharedir-install
version=0.14
release=1
source=(https://www.cpan.org/modules/by-module/File/File-ShareDir-Install-$version.tar.gz)

build() {
  cd File-ShareDir-Install-$version
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make install DESTDIR=$PKG
  find $PKG -name .packlist -o \
    -name perllocal.pod -o \
    -name README -o \
    -name '*.bs' | xargs rm
}
