git » perl-file-listing.git » main » tree

[main] / PKGBUILD

# Maintainer:

pkgname=perl-file-listing
pkgver=6.16
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=('2d18f0cf7dbf30bb752c5d70132e90dd346e6fb795cb61664b8f11bfba67ec357235f5cb5a87752cf65ba9d000a6c7976548f0aed0f833048ca1b06aed991eca')

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
}