# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+aur@gmail.com>

pkgname=perl-email-address-xs
pkgver=1.06
pkgrel=1
pkgdesc="RFC 2822 Address Parsing and Creation "
arch=('x86_64')
url="https://search.cpan.org/dist/Email-Address-XS"
license=('GPL' 'PerlArtistic')
depends=('perl')
options=('!emptydirs')
source=("https://cpan.metacpan.org/authors/id/P/PA/PALI/Email-Address-XS-$pkgver.tar.gz")
sha256sums=('d8de14fa522bb7467782616114264781876832dbf047de38f2e024ee2e396abe')

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

package() {
  cd  "$srcdir"/Email-Address-XS-$pkgver
  make install DESTDIR="$pkgdir"
}
