summaryrefslogtreecommitdiff
path: root/perl-statistics-descriptive/PKGBUILD
blob: 9b24cd5124e82508a3a8d8f77e7c3e3b01c2203f (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
# Contributor: Michael Gerdau <mgd@qata.de>
# Generator  : CPANPLUS::Dist::Arch 1.32

pkgname='perl-statistics-descriptive'
pkgver='3.0609'
pkgrel='2'
pkgdesc="Module of basic descriptive statistical functions."
arch=('any')
license=('PerlArtistic' 'GPL')
options=('!emptydirs')
depends=('perl-list-moreutils>=0')
makedepends=()
url='https://metacpan.org/release/Statistics-Descriptive'
source=('http://search.cpan.org/CPAN/authors/id/S/SH/SHLOMIF/Statistics-Descriptive-3.0609.tar.gz')
sha512sums=('06e3fe107085eab058c3816211e91069ac8c52bd3c5276ee61f0ad6d684a957bd02767fe6080aa12b93f6fb3b9f4cad30814fcfa0aba446d73861868f567ff4f')
_distdir="Statistics-Descriptive-3.0609"

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 "$srcdir/$_distdir"
    /usr/bin/perl Makefile.PL
    make
  )
}

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

package() {
  cd "$srcdir/$_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: