summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f2efb6096945a70a0f4e418972b5ca50889e93be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Contributor: BluePeril <blueperil@blueperil.de>
# Generator  : CPANPLUS::Dist::Arch 1.32

pkgname='perl-module-cpants-analyse'
pkgver='1.02'
pkgrel='1'
pkgdesc="Generate Kwalitee ratings for a distribution"
arch=('any')
license=('PerlArtistic' 'GPL')
options=('!emptydirs')
depends=('perl-archive-any-lite>=0.06' 'perl-array-diff>=0.04' 'perl-cpan-distnameinfo>=0.06' 'perl-class-accessor>=0.19' 'perl-data-binary>=0' 'perl-file-find-object>=0.2.1' 'perl-module-find>=0' 'perl-perl-prereqscanner-notquitelite>=0.9901' 'perl-software-license>=0.103012' 'perl>=5.8.1')
makedepends=()
checkdepends=('perl-test-failwarnings>=0' 'perl-extutils-makemaker-cpanfile' 'perl-algorithm-diff' 'perl-class-xsaccessor' 'perl-parse-distname')
url='https://metacpan.org/release/Module-CPANTS-Analyse'
source=("http://search.cpan.org/CPAN/authors/id/I/IS/ISHIGAKI/Module-CPANTS-Analyse-${pkgver}.tar.gz")
md5sums=('8e3d13918736c8d1a56f8f8d7786e669')
sha512sums=('572633299084f531067b3ac02593017532a984f493386d839547f8e53052ab0adac250301688398198c2728404408e09b2e697291a1006c789c2774a6bcc8001')
_distdir="Module-CPANTS-Analyse-${pkgver}"

build() {
  ( 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

    cd "$_distdir"
    /usr/bin/perl Makefile.PL
    make
  )
}

check() {
  cd "$_distdir"
  ( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
    make test
  )
}

package() {
  cd "$_distdir"
  make install
  find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
}

# Local Variables:
# mode: shell-script
# sh-basic-offset: 2
# End:
# vim:set ts=2 sw=2 et: