# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: François Charette <firmicus ατ gmx δοτ net>

pkgname=perl-poe
pkgver=1.368
pkgrel=1
pkgdesc="portable multitasking and networking framework for Perl "
arch=(any)
url="https://search.cpan.org/dist/POE"
license=('GPL' 'PerlArtistic')
depends=('perl>=5.10.0' 'perl-io-tty>=1.08' 'perl-io-pipely')
options=('!emptydirs')
source=(https://search.cpan.org/CPAN/authors/id/B/BI/BINGOS/POE-$pkgver.tar.gz)
sha256sums=('b7b1dc761e36d48b39068349b576dafc0eccbc3b9db51c677de0e1aafadfe121')

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

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