# $Id: PKGBUILD 129057 2015-03-11 11:23:52Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+aur@gmail.com>

pkgname=perl-email-abstract
pkgver=3.008
pkgrel=1
pkgdesc="unified interface to mail representations"
arch=('any')
url="http://search.cpan.org/dist/Email-Abstract"
license=('GPL' 'PerlArtistic')
depends=('perl-email-simple>=1.91')
options=('!emptydirs')
source=(http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/Email-Abstract-$pkgver.tar.gz)
md5sums=('dbfc069ffb5f8c96989bf62f0df5d756')

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

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