# $Id$ # Maintainer: Dale Blount # Contributor: Dale Blount pkgname=perl-error _realname=Error pkgver=0.17016 pkgrel=2 pkgdesc="Perl/CPAN Error module - Error/exception handling in an OO-ish way" url="http://search.cpan.org/dist/${_realname}/" arch=(any) license=('PerlArtistic' 'GPL') depends=('perl>=5.10.0') options=('!emptydirs') source=(http://search.cpan.org/CPAN/authors/id/S/SH/SHLOMIF/${_realname}-${pkgver}.tar.gz) md5sums=('eedcd3c6970568dd32092b5334328eff') build() { cd ${srcdir}/${_realname}-${pkgver} # install module in vendor directories. perl Makefile.PL INSTALLDIRS=vendor make make test } package() { cd ${srcdir}/${_realname}-${pkgver} make install DESTDIR=${pkgdir} # remove perllocal.pod and .packlist find ${pkgdir} -name perllocal.pod -delete find ${pkgdir} -name .packlist -delete }