# $Id: PKGBUILD 116703 2014-08-01 11:52:25Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: François Charette <firmicus ατ gmx δοτ net>

pkgname=perl-poe
pkgver=1.364
pkgrel=1
pkgdesc="portable multitasking and networking framework for Perl "
arch=(any)
url="http://search.cpan.org/dist/POE"
license=('GPL' 'PerlArtistic')
depends=('perl>=5.10.0' 'perl-io-tty>=1.08' 'perl-io-pipely')
options=('!emptydirs')
source=(http://search.cpan.org/CPAN/authors/id/R/RC/RCAPUTO/POE-$pkgver.tar.gz)
md5sums=('eb83124faeac63d2bf86b0a7983299b4')

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
}
