# Maintainer:

pkgname=perl-file-listing
pkgver=6.14
pkgrel=2
pkgdesc="parse directory listing"
arch=('any')
url="https://search.cpan.org/dist/File-Listing"
license=('PerlArtistic' 'GPL')
depends=('perl' 'perl-http-date')
options=('!emptydirs')
source=("https://search.cpan.org/CPAN/authors/id/P/PL/PLICEASE/File-Listing-${pkgver}.tar.gz")
sha512sums=('858339b15a455db570d15b02e801ab0e0afd47da71685002083cbcc1a0f89783fcad4e840e0381f186046ab2f355dc0f593dc8c9c0a2da0fc6f17a35265924ab')

build() {
  cd File-Listing-${pkgver}
  perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd File-Listing-${pkgver}
  make test
}

package() {
  cd File-Listing-${pkgver}
  make DESTDIR="$pkgdir" install
}
