# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Caleb Cushing <xenoterracide@gmail.com>

pkgname=perl-datetime-format-strptime
pkgver=1.80
pkgrel=1
pkgdesc="Parse and Format DateTimes using Strptime"
arch=('any')
license=('PerlArtistic' 'GPL')
options=('!emptydirs')
depends=('perl-datetime>=0.72' 'perl-datetime-locale>=0.45'
	 'perl-datetime-timezone>=0.79' 'perl-params-validate>=0.64'
	 'perl-package-deprecationmanager')
url="https://search.cpan.org/dist/DateTime-Format-Strptime"
source=("https://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/DateTime-Format-Strptime-${pkgver}.tar.gz")
sha256sums=('efe5e2be70425efc123a4e57f4b96b2d23beb03200c8326495b5b433b6b77158')

build() {
  export PERL_MM_USE_DEFAULT=1
  cd "${srcdir}/DateTime-Format-Strptime-${pkgver}"
  perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "${srcdir}/DateTime-Format-Strptime-${pkgver}"
  make DESTDIR="$pkgdir" install
  find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
}
