# $Id: PKGBUILD 115814 2014-07-17 09:13:30Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+aur@gmail.com>

pkgname=perl-email-address
pkgver=1.905
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=('3ed17b42a797bbc0103eabbb2d130766')

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

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