# Description: Fast and correct UTF-8 PerlIO
# URL: https://metacpan.org/release/PerlIO-utf8_strict
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: p5-test-exception

name=p5-perlio-utf8-strict
version=0.010
release=1
source=(https://cpan.metacpan.org/authors/id/L/LE/LEONT/PerlIO-utf8_strict-$version.tar.gz)

build() {
  cd PerlIO-utf8_strict-$version
  unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
  export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps
  perl Makefile.PL
  make
  make install INSTALLDIRS=vendor DESTDIR=$PKG install
  find $PKG \( -name '.packlist' -o -name '*.pod' \) -delete
}
