testing/perl-email-reply: modernize

This commit is contained in:
J0WI 2023-05-06 18:39:24 +02:00 committed by alice
parent f3285ca321
commit dd52e5f014

View File

@ -4,7 +4,7 @@
pkgname=perl-email-reply
_pkgreal=Email-Reply
pkgver=1.204
pkgrel=3
pkgrel=4
pkgdesc="Reply to a Message"
url="https://metacpan.org/release/Email-Reply"
arch="noarch"
@ -12,17 +12,16 @@ license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl perl-email-abstract perl-email-mime perl-email-address"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/R/RJ/RJBS/$_pkgreal-$pkgver.tar.gz"
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}
build() {
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
make && make test
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
make
}
check() {
make test
}
package() {
@ -30,4 +29,6 @@ package() {
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}
sha512sums="78353abe415fefbf4c70398433584221bf037eab09f4a6a20bcafec4e0a632a5ee07a880e33f806f61fe3a943b7f55c428d90bbc5ea9d5c551eb78e0ff88ac5a Email-Reply-1.204.tar.gz"
sha512sums="
78353abe415fefbf4c70398433584221bf037eab09f4a6a20bcafec4e0a632a5ee07a880e33f806f61fe3a943b7f55c428d90bbc5ea9d5c551eb78e0ff88ac5a Email-Reply-1.204.tar.gz
"