# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=perl-file-copy-recursive
pkgver=0.40
_realname=File-Copy-Recursive-$pkgver
pkgrel=0
pkgdesc="Perl extension for recursively copying files and directories"
url="http://search.cpan.org/dist/File-Copy-Recursive/"
arch="noarch"
license="GPL PerlArtistic"
depends=""
makedepends="perl-dev"
checkdepends="perl-test-deep perl-test-exception"
options="!check" # requires several new pkgs which will ! begin in main
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/D/DM/DMUEY/$_realname.tar.gz"

builddir="$srcdir/$_realname"

build() {
	cd "$builddir"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	cd "$builddir"
	make test
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="874dd6862c2556bac459bae117e882655b16de90284c44cfb518714ef9924afb2d7bed29ca5bde20681fb887646a972ea5d9aa61ffe6d58459494b8a245db3e6  File-Copy-Recursive-0.40.tar.gz"
