# $Id: PKGBUILD 119615 2014-09-26 14:54:38Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Charles Mauch <cmauch@gmail.com>

pkgname=perl-test-exception
pkgver=0.35
pkgrel=1
pkgdesc="Perl/CPAN Module Test::Exception : Functions for testing exceptionbased code"
arch=("any")
url="http://search.cpan.org/dist/Test-Exception/"
license=("GPL" "PerlArtistic")
depends=("perl-sub-uplevel")
source=("http://search.cpan.org/CPAN/authors/id/E/EX/EXODIST/Test-Exception-$pkgver.tar.gz")
md5sums=('d774ff26e5fcd67d6364a990b61e62ca')

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
}
