text: # Maintainer: Alexey Pavlov <alexpux@gmail.com>
  
  _realname=TimeDate
  pkgname="perl-${_realname}"
  pkgver=2.33
  pkgrel=1
  pkgdesc="Date formating subroutines"
  arch=('any')
  license=('PerlArtistic')
  url="https://metacpan.org/${_realname}/"
  depends=('perl')
  options=('!emptydirs')
  source=("https://www.cpan.org/authors/id/A/AT/ATOOMIC/${_realname}-${pkgver}.tar.gz")
  sha256sums=('c0b69c4b039de6f501b0d9f13ec58c86b040c1f7e9b27ef249651c143d605eb2')
  
  build() {
    cd ${_realname}-${pkgver}
  
    # install module in vendor directories.
    perl Makefile.PL INSTALLDIRS=vendor
    make
  }
  
  check() {
    cd ${_realname}-${pkgver}
    make test
  }
  
  package() {
    cd ${_realname}-${pkgver}
    make install DESTDIR="${pkgdir}"
  }
  