diff options
author | Erich Eckner <git@eckner.net> | 2016-04-05 15:45:07 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2016-04-05 15:45:07 +0200 |
commit | 34e2d542c3419b9af17f8b0ce35d0ad318227036 (patch) | |
tree | 7e9d021023007b8966bdd4a6ba1630379ba6fb62 | |
parent | 92793b02e8b5072b4e868f2859afaaf795393e27 (diff) | |
download | archlinuxewe.git.save-34e2d542c3419b9af17f8b0ce35d0ad318227036.tar.xz |
perl-devel-checklib neu
-rw-r--r-- | perl-devel-checklib/PKGBUILD | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/perl-devel-checklib/PKGBUILD b/perl-devel-checklib/PKGBUILD new file mode 100644 index 00000000..d9422929 --- /dev/null +++ b/perl-devel-checklib/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: pzl <alsoelp _at_ gmail> +# CPAN Name : Devel::CheckLib + +pkgname='perl-devel-checklib' +pkgver='1.06' +pkgrel='1' +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") +md5sums=('1e7ab1d28313f5303c0ac777c9aa7b91') +_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 +} + + |