# Contributor: Valery Kartel # Contributor: Leonardo Arena # Maintainer: Leonardo Arena pkgname=perl-mail-spf _realname=Mail-SPF pkgver=2.9.0 pkgrel=6 pkgdesc="An object-oriented implementation of Sender Policy Framework" url="https://metacpan.org/dist/Mail-SPF" arch="noarch" license="GPL-1.0-or-later OR Artistic-1.0-Perl" depends="perl perl-error perl-net-dns perl-uri perl-netaddr-ip perl-net-dns-resolver-programmable" makedepends="perl-module-build" subpackages="$pkgname-doc" source="https://cpan.metacpan.org/authors/id/J/JM/JMEHNLE/mail-spf/$_realname-v$pkgver.tar.gz" builddir="$srcdir/$_realname-v$pkgver" build() { PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor make } check() { make test } package() { make DESTDIR="$pkgdir" install mv "$pkgdir"/usr/share/perl5/vendor_perl/* "$pkgdir"/usr/lib/perl5/vendor_perl rm -fr "$pkgdir"/usr/share/perl5 rm -fr "$pkgdir"/usr/bin "$pkgdir"/usr/sbin } sha512sums=" 22bf98c4981f121ed85bb5cbc1ebcb2607ada5052bcea0dd8de692e3473a2ebdd3066acd944bb12f0efe64605e4bf7dc695a1549b7608239d0efc059339df60b Mail-SPF-v2.9.0.tar.gz "