# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=perl-email-address-list
pkgver=0.05
pkgrel=2
pkgdesc="RFC close address list parsing"
url="http://search.cpan.org/dist/Email-Address-List/"
arch="noarch"
license="GPL+ or Artistic"
depends="perl perl-email-address"
makedepends="perl-dev perl-json perl-module-install"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/A/AL/ALEXMV/Email-Address-List-$pkgver.tar.gz"

builddir="$srcdir/Email-Address-List-$pkgver"

build() {
	cd "$builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	cd "$builddir"
	make test
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="cfb7ea59de8c164a632afdea2d269213052709d91d56869198e1e788452a1746d8f37ad681c946d4b705363311d95ad2babff6fadabda50818da3d2b9e14cde5  Email-Address-List-0.05.tar.gz"
