# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Charles Mauch <cmauch@gmail.com>

pkgname=perl-io-tee
pkgver=0.66
pkgrel=5
pkgdesc="Perl/CPAN Module IO::Tee : Multiplex output to multiple handles"
arch=("any")
url="https://search.cpan.org/dist/IO-Tee"
license=("GPL" "PerlArtistic")
source=("https://cpan.metacpan.org/authors/id/N/NE/NEILB/IO-Tee-$pkgver.tar.gz")
sha256sums=('2d9ce7206516f9c30863a367aa1c2b9b35702e369b0abaa15f99fb2cc08552e0')

build() {
  cd "$srcdir"/IO-Tee-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$srcdir"/IO-Tee-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
