From 446c2d35732b5d9cfc7f809c69c078e9016ee5e1 Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Thu, 31 May 2018 15:46:05 +0000 Subject: perl-mailtools: update to 2.20 --- abs/core/perl_modules/perl-mailtools/PKGBUILD | 32 ++++++++++++++------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/abs/core/perl_modules/perl-mailtools/PKGBUILD b/abs/core/perl_modules/perl-mailtools/PKGBUILD index 117352a..cb7d453 100644 --- a/abs/core/perl_modules/perl-mailtools/PKGBUILD +++ b/abs/core/perl_modules/perl-mailtools/PKGBUILD @@ -1,28 +1,30 @@ -# $Id: PKGBUILD 140680 2011-10-18 03:11:21Z eric $ -# Maintainer: Kevin Piche -# Contributor: Eric Johnson +# $Id$ +# Maintainer: Felix Yan pkgname=perl-mailtools -_realname=MailTools -pkgver=2.08 +pkgver=2.20 pkgrel=1 -pkgdesc="Perl module that provides email tools" +pkgdesc="Various e-mail related modules" arch=('any') -url="http://search.cpan.org/dist/${_realname}/" -license=('PerlArtistic') -depends=('perl>=5.10.0') +url="https://metacpan.org/release/MailTools" +license=('PerlArtistic' 'GPL') +depends=('perl-timedate') options=('!emptydirs') -source=(http://search.cpan.org/CPAN/authors/id/M/MA/MARKOV/${_realname}-${pkgver}.tar.gz) -md5sums=('0245bf7985c6661e0cf31a59657a18f0') +source=("http://search.cpan.org/CPAN/authors/id/M/MA/MARKOV/MailTools-$pkgver.tar.gz") +sha512sums=('fb9a330c5b5795d68fc0e5bb6c5f1d7d525e8e1e87996f6fac7120e46bc22897c9f0c23f121866cb10d7ce4ffd9ac979b31602dbec379a8d15e8257a2c725a5e') build() { - cd "${srcdir}/${_realname}-${pkgver}" - # install module in vendor directories. + cd MailTools-$pkgver perl Makefile.PL INSTALLDIRS=vendor make } +check() { + cd MailTools-$pkgver + make test +} + package() { - cd "${srcdir}/${_realname}-${pkgver}" - make install DESTDIR="${pkgdir}" + cd MailTools-$pkgver + make DESTDIR="$pkgdir" install } -- cgit v0.12