# $Id: PKGBUILD 73847 2012-07-16 05:41:34Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+aur@gmail.com>

pkgname=perl-email-address
pkgver=1.895
pkgrel=1
pkgdesc="RFC 2822 Address Parsing and Creation "
arch=('any')
url="http://search.cpan.org/dist/Email-Address"
license=('GPL' 'PerlArtistic')
depends=('perl')
options=('!emptydirs')
source=("http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/Email-Address-$pkgver.tar.gz")
md5sums=('57a05d45498f5dc6dc28ebb075706b91')

build() {
  cd  $srcdir/Email-Address-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
  make install DESTDIR=$pkgdir
  find $pkgdir -name '.packlist' -delete
  find $pkgdir -name '*.pod' -delete
}
