diff options
author | Piotr Rogoża | 2018-09-05 22:14:43 +0200 |
---|---|---|
committer | Piotr Rogoża | 2018-09-05 22:17:29 +0200 |
commit | d8f235e2b8bb33f93700ed0cba81f101ee8fd8c5 (patch) | |
tree | 195f648788e79025beca77769f1f2d2ead212067 | |
parent | 1743f9312d711ce7a6ade388cfd7df7de545076e (diff) | |
download | aur-d8f235e2b8bb33f93700ed0cba81f101ee8fd8c5.tar.gz |
Upgraded to 1.1004
-rw-r--r-- | PKGBUILD | 49 |
1 files changed, 16 insertions, 33 deletions
@@ -1,8 +1,7 @@ -# Maintainer: Piotr Rogoza <piotr dot r dot public at gmail dot com> -# Contributor: Piotr Rogoza <piotr dot r dot public at gmail dot com> +# Maintainer: dracorp aka Piotr Rogoza <piotr.r.public at gmail.com> pkgname=perl-module-cpanfile -pkgver=1.1001 +pkgver=1.1004 pkgrel=1 _author="M/MI/MIYAGAWA" _perlmod="Module-CPANfile" @@ -14,49 +13,33 @@ depends=(perl) options=(!emptydirs) source=("http://search.cpan.org/CPAN/authors/id/$_author/$_perlmod-$pkgver.tar.gz") sha256sums=('ad435d7658c6fd86c02b89527e27a3881d04df528989365a700934a3c22b08d6') +unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT +export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps MODULEBUILDRC=/dev/null build(){ cd "$srcdir"/$_perlmod-$pkgver - - # Setting these env variables overwrites any command-line-options we don't want... - export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps \ - PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \ - PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \ - MODULEBUILDRC=/dev/null - - # If using Makefile.PL - if [ -r Makefile.PL ]; then - /usr/bin/perl Makefile.PL + if [ -f Makefile.PL ]; then + perl Makefile.PL make - # If using Build.PL - elif [ -r Build.PL ]; then - /usr/bin/perl Build.PL - perl Build + else + perl Build.PL + ./Build fi } check(){ cd "$srcdir"/$_perlmod-$pkgver - - # If using Makefile.PL - if [ -r Makefile.PL ]; then + if [ -f Makefile.PL ]; then make test - # If using Build.PL - elif [ -r Build.PL ]; then - perl Build test + else + ./Build test fi } package(){ cd "$srcdir"/$_perlmod-$pkgver - - # If using Makefile.PL - if [ -r Makefile.PL ]; then - make install - # If using Build.PL - elif [ -r Build.PL ]; then - perl Build install + if [ -f Makefile.PL ]; then + make install INSTALLDIRS=vendor DESTDIR="$pkgdir" + else + ./Build install --installdirs=vendor --destdir="$pkgdir" fi - - # remove perllocal.pod and .packlist - find "$pkgdir" -name .packlist -o -name perllocal.pod -delete } |