# Maintainer: pzl # CPAN Name : Devel::CheckLib pkgname='perl-devel-checklib' pkgver='1.06' pkgrel='2' pkgdesc="Module to check if other perl modules are installed" arch=('any') url='http://search.cpan.org/dist/Devel-CheckLib/' license=('PerlArtistic' 'GPL') depends=('perl') checkdepends=('perl-io-captureoutput') options=('!emptydirs') source=("http://search.cpan.org/CPAN/authors/id/M/MA/MATTN/Devel-CheckLib-${pkgver}.tar.gz") sha512sums=('a87d7ecb6ab3936b1dfe69f7a6b61c21ab097cc89a45d98715e1615895f9412e64206f950535a77009249f35d028875fe679f90adb9b48030c2d5a28f6a8f68e') _distdir="Devel-CheckLib-${pkgver}" prepare() { export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \ PERL_AUTOINSTALL=--skipdeps \ PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \ PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \ MODULEBUILDRC=/dev/null } build() { cd "${srcdir}/${_distdir}" /usr/bin/perl Makefile.PL make } check() { cd "${srcdir}/${_distdir}" make test } package() { cd "${srcdir}/${_distdir}" make install find "$pkgdir" -name .packlist -o -name perllocal.pod -delete }