# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# This PKGBUILD was generated by cpan4pacman via CPANPLUS::Dist::Pacman
# Contributor: Francois Charette <firmicus@gmx.net>

pkgname=perl-test-manifest
pkgver=2.025
pkgrel=1
pkgdesc="configure which test files to run"
arch=('any')
url="https://search.cpan.org/dist/Test-Manifest"
license=('GPL' 'PerlArtistic')
depends=('perl')
options=('!emptydirs')
source=(https://www.cpan.org/authors/id/B/BR/BRIANDFOY/Test-Manifest-$pkgver.tar.gz)
sha256sums=('2a98c4902d46df381cda5913857c69100f589b36df60460fcd583cb6b60becfd')

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

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