summaryrefslogtreecommitdiffstats
path: root/abs
diff options
context:
space:
mode:
Diffstat (limited to 'abs')
-rw-r--r--abs/core/perl_modules/perl-mailtools/PKGBUILD32
1 files 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 <kevin@archlinux.org>
-# Contributor: Eric Johnson <eric@coding-zone.com>
+# $Id$
+# Maintainer: Felix Yan <felixonmars@archlinux.org>
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
}