# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=perl-path-iter
_realname=Path-Iter
pkgver=0.2
pkgrel=0
pkgdesc="Simple Efficient Path Iteration"
url="http://drmuey.com/cpan_contact.pl"
arch="noarch"
license="PerlArtistic"
depends=""
makedepends="perl-dev"
subpackages="$pkgname-doc"
source="http://search.cpan.org/CPAN/authors/id/D/DM/DMUEY/$_realname-$pkgver.tar.gz"
builddir="$srcdir/$_realname-$pkgver"

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="339f0c22e423cd4916324f02eac359ef3d6bc7718a49c1ad9384d1a0f4eabac3ddd3f1de2ad46beadbbc36473b18f137ad15171bb3e09cda68dd27f953042df4  Path-Iter-0.2.tar.gz"
