# $Id: PKGBUILD 95654 2013-08-15 09:48:44Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Charles Mauch <cmauch@gmail.com>

pkgname=perl-test-exception
pkgver=0.32
pkgrel=2
pkgdesc="Perl/CPAN Module Test::Exception : Functions for testing exceptionbased code"
arch=("any")
url="http://search.cpan.org/~adie/"
license=("GPL" "PerlArtistic")
depends=("perl-sub-uplevel")
source=("http://search.cpan.org/CPAN/authors/id/A/AD/ADIE/Test-Exception-$pkgver.tar.gz")
md5sums=('50e985a335842540b69ea886eeed8a7f')

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

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