# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# This PKGBUILD was autocreated.  See https://xtermin.us/archperl/ for details
# Maintainer: Charles Mauch <cmauch@gmail.com>

pkgname=perl-time-format
pkgver=1.16
pkgrel=5
pkgdesc="Perl/CPAN Module Time::Format : Easytouse datetime formatting"
arch=(any)
url="https://search.cpan.org/dist/Time-Format"
license=("GPL" "PerlArtistic")
source=("https://search.cpan.org/CPAN/authors/id/R/RO/ROODE/Time-Format-$pkgver.tar.gz")
sha256sums=('b4655882e1d28f5772182d553753c4f49343bb44de9f8429b5e8fea6b496a38f')

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

package() {
  cd "$srcdir"/Time-Format-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
