user/perl-email-valid: in community

This commit is contained in:
Antoine Martin 2023-12-05 14:24:10 -05:00
parent daf247f0aa
commit eb541348de
Signed by: forge
GPG key ID: D62A472A4AA7D541

View file

@ -1,40 +0,0 @@
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
_cpaname="Email-Valid"
_cpanauthor=RJBS
pkgname=perl-email-valid
pkgver=1.203
pkgrel=1
pkgdesc="Check validity of Internet email addresses"
# disable missing depends
#arch="noarch"
url="http://search.cpan.org/dist/$_cpaname/"
license="GPL"
depends="
perl-io-captureoutput
perl-mailtools
perl-net-dns
perl-net-domain-tld
"
source="http://www.cpan.org/authors/id/${_cpanauthor::1}/${_cpanauthor::2}/$_cpanauthor/$_cpaname-$pkgver.tar.gz"
subpackages="$pkgname-doc"
builddir="$srcdir"/$_cpaname-$pkgver
build() {
export PERL_MM_FALLBACK_SILENCE_WARNING=true
perl Makefile.PL
make
}
check() {
make test
}
package() {
make install INSTALLDIRS=vendor DESTDIR="$pkgdir"
rm "$pkgdir"/usr/lib/perl5/core_perl/perllocal.pod
}
sha512sums="
5c91298df72d1084401be47f035d44a350a0aa5de7bfa5019b7f2b44fe61a1e64875f77a4b3412d660f0136c548dde6158eae1a8fcba4442d0de0a19c51e84fd Email-Valid-1.203.tar.gz
"