# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Charles Mauch <cmauch@gmail.com>
# Contributor: Francois Charette <firmicus@gmx.net>

pkgname=perl-file-remove
pkgver=1.60
pkgrel=1
pkgdesc="Remove files and directories"
depends=('perl')
arch=('any')
url="https://search.cpan.org/dist/File-Remove"
license=('GPL' 'PerlArtistic')
options=('!emptydirs')
source=(https://search.cpan.org/CPAN/authors/id/S/SH/SHLOMIF/File-Remove-$pkgver.tar.gz)
sha256sums=('e86e2a40ffedc6d5697d071503fd6ba14a5f9b8220af3af022110d8e724f8ca6')

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

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