# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Sergej Pupykin <pupykin.s+aur@gmail.com>

pkgname=perl-email-date-format
pkgver=1.008
pkgrel=5
pkgdesc="produce RFC 2822 date strings"
arch=('any')
url="https://search.cpan.org/dist/Email-Date-Format"
license=('GPL' 'PerlArtistic')
depends=('perl')
checkdepends=('perl-test-pod' 'perl-capture-tiny')
options=('!emptydirs')
source=("https://www.cpan.org/authors/id/R/RJ/RJBS/Email-Date-Format-$pkgver.tar.gz")
sha512sums=('24c97cd3b739c2f3c298b9ec168c4614bb71b13a0106f351990443cc86506e4e121f9c647bde6f08080a876f36adeb3fcef566d87ded9bddcbec6f3191f508be')

build() {
  cd Email-Date-Format-$pkgver
  perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd Email-Date-Format-$pkgver
  make test
}

package() {
  cd Email-Date-Format-$pkgver
  make DESTDIR="$pkgdir" install
}
