# $Id: PKGBUILD 114169 2014-07-01 13:51:07Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Charles Mauch <cmauch@gmail.com>

pkgname=perl-data-hierarchy
pkgver=0.34
pkgrel=6
pkgdesc="Perl/CPAN Module Data::Hierarchy"
arch=("any")
url="http://search.cpan.org/dist/Data-Hierarchy"
license=("GPL" "PerlArtistic")
makedepends=("perl-test-exception")
depends=("perl-test-exception")
source=("http://www.cpan.org/authors/id/C/CL/CLKAO/Data-Hierarchy-$pkgver.tar.gz")
md5sums=("f4ac04c7f676cbfff9bbd1be118d4c66")

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

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