# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=perl-file-copy-recursive-reduced
pkgver=0.006
pkgrel=5
pkgdesc="Recursive copying of files and directories within Perl 5 toolchain"
arch=('any')
license=('PerlArtistic' 'GPL')
options=('!emptydirs')
depends=('perl')
makedepends=('perl-capture-tiny' 'perl-path-tiny')
url='https://search.cpan.org/dist/File-Copy-Recursive-Reduced'
source=("https://search.cpan.org/CPAN/authors/id/J/JK/JKEENAN/File-Copy-Recursive-Reduced-$pkgver.tar.gz")
sha512sums=('7cf888b8c004d9430c87c1cceba25e997cb12974a79c3f4d803b11779abef81f5b686caac4c46a70caadb2eee12a71cb1fb87abfc7d5fec43dc37bbd2ef07694')

build() {
  cd "$srcdir/File-Copy-Recursive-Reduced-$pkgver"
  perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd "$srcdir/File-Copy-Recursive-Reduced-$pkgver"
  make test
}

package() {
  cd "$srcdir/File-Copy-Recursive-Reduced-$pkgver"
  make DESTDIR="$pkgdir" install
}

# vim:set ts=2 sw=2 et:
