# Maintainer: Leonardo Arena pkgname=perl-mail-dkim _realname=Mail-DKIM pkgver=0.57 pkgrel=0 pkgdesc="Signs/verifies Internet mail with DKIM/DomainKey signatures" url="http://search.cpan.org/~jaslong/Mail-DKIM/" arch="noarch" license="Artistic-Perl-1.0 GPL+" depends="perl perl-net-dns perl-net-ip perl-mailtools perl-crypt-openssl-rsa perl-yaml-libyaml perl-net-dns-resolver-mock perl-mail-authenticationresults " makedepends="perl-dev" checkdepends="perl-test-requiresinternet" subpackages="$pkgname-doc" source="http://search.cpan.org/CPAN/authors/id/M/MB/MBRADSHAW/$_realname-$pkgver.tar.gz" builddir="$srcdir/$_realname-$pkgver" prepare() { cd "$builddir" export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor } build() { cd "$builddir" export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'` make } package() { cd "$builddir" make DESTDIR="$pkgdir" install find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete } check() { cd "$builddir" make test } sha512sums="b20e2c098ba27e604c80e5f64ab37a78678d63bde1252f7aac9a39facee515836d5bc0b8b5dc87cfcb5449ee696a6b43475495b694f1b43cb8f11be2f9b766b3 Mail-DKIM-0.57.tar.gz"