diff options
author | Piotr Rogoża | 2018-03-05 19:55:15 +0100 |
---|---|---|
committer | Piotr Rogoża | 2018-03-05 19:55:15 +0100 |
commit | bc0c528f6f0c7798fd88ff998dc50bbd47e3b841 (patch) | |
tree | de7042771fc47387883a5489681231a85cf42f50 | |
parent | 50e7e50b3f92c9b242905ffc5cf9c1d516711287 (diff) | |
download | aur-bc0c528f6f0c7798fd88ff998dc50bbd47e3b841.tar.gz |
Upgraded to 1.2018
-rw-r--r-- | .SRCINFO | 8 | ||||
-rw-r--r-- | PKGBUILD | 36 |
2 files changed, 26 insertions, 18 deletions
@@ -1,8 +1,8 @@ # Generated by mksrcinfo v8 -# Thu Apr 7 18:00:26 UTC 2016 +# Mon Mar 5 18:54:53 UTC 2018 pkgbase = perl-cpan-reporter pkgdesc = CPAN::Reporter - Adds CPAN Testers reporting to CPAN.pm - pkgver = 1.2017 + pkgver = 1.2018 pkgrel = 1 url = http://search.cpan.org/dist/CPAN-Reporter/ arch = any @@ -27,8 +27,8 @@ pkgbase = perl-cpan-reporter provides = perl-cpan-reporter-history provides = perl-cpan-reporter-prereqcheck options = !emptydirs - source = http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/CPAN-Reporter-1.2017.tar.gz - sha256sums = fb8e3050ff5332881b3c63d34a8e960e7d02d16f79c6e360f7a489c4e656b36c + source = http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/CPAN-Reporter-1.2018.tar.gz + sha256sums = 2dc561c42f4644747a05e516221da731b8e260e082f1be594b98af7efe90ddc1 pkgname = perl-cpan-reporter @@ -1,8 +1,7 @@ -# $Id$ # Maintainer: dracorp aka Piotr Rogoza <piotr.r.public at gmail.com> pkgname=perl-cpan-reporter -pkgver=1.2017 +pkgver=1.2018 _author=D/DA/DAGOLDEN _perlmod=CPAN-Reporter pkgrel=1 @@ -38,24 +37,33 @@ perl-cpan-reporter-prereqcheck optdepends=('perl-test-reporter-transport-metabase: Metabase transport') options=(!emptydirs) source=("http://search.cpan.org/CPAN/authors/id/$_author/$_perlmod-$pkgver.tar.gz") -sha256sums=('fb8e3050ff5332881b3c63d34a8e960e7d02d16f79c6e360f7a489c4e656b36c') +sha256sums=('2dc561c42f4644747a05e516221da731b8e260e082f1be594b98af7efe90ddc1') +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 - unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT - export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps MODULEBUILDRC=/dev/null - /usr/bin/perl Makefile.PL - make + if [ -f Makefile.PL ]; then + perl Makefile.PL + make + else + perl Build.PL + ./Build + fi } check(){ cd "$srcdir"/$_perlmod-$pkgver - unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT - export PERL_MM_USE_DEFAULT=1 - make test + if [ -f Makefile.PL ]; then + make test + else + ./Build test + fi } package(){ cd "$srcdir"/$_perlmod-$pkgver - unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT - make install INSTALLDIRS=vendor DESTDIR="$pkgdir" - # remove perllocal.pod and .packlist - find "$pkgdir" -name .packlist -o -name perllocal.pod -delete + if [ -f Makefile.PL ]; then + make install INSTALLDIRS=vendor DESTDIR="$pkgdir" + else + ./Build install --installdirs=vendor --destdir="$pkgdir" + fi } |