summaryrefslogtreecommitdiff
path: root/perl-pdl/PKGBUILD
blob: 31daf680dd7cbc1cd01449718a7e9dd38ea0ea18 (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# Maintainer: Erich Eckner <arch at eckner dot net>
pkgname=perl-pdl
_pkgname='PDL'
pkgver=2.018
pkgrel='4'
_distdir="${_pkgname}-${pkgver}"
pkgdesc="the Perl Data Language"
arch=('x86_64' 'i686')
url="http://pdl.perl.org/"
license=('GPL' 'PerlArtistic')
depends=(
  'hdf4'
  'perl>=5.10.0'
  'perl-astro-fits-header'
  'perl-carp'
  'perl-convert-uu'
  'perl-data-dumper>=2.121'
  'perl-extutils-makemaker>=6.56'
  'perl-extutils-manifest'
  'perl-file-map>=0.57'
  'perl-file-path'
  'perl-file-temp'
  'perl-filter-simple>=0.88'
  'perl-filter-util-call'
  'perl-inline>=0.68'
  'perl-inline-c>=0.62'
  'perl-list-moreutils'
  'perl-module-compile>=0.23'
  'perl-opengl>=0.67.02'
  'perl-pathtools>=0.6'
  'perl-pod-parser'
  'perl-scalar-list-utils'
  'perl-storable>=1.03'
  'perl-text-balanced>=1.89')
makedepends=(
  'perl-carp>=1.2'
  'perl-cpan-meta>=2.120900'
  'perl-devel-checklib>=1.01'
  'perl-extutils-parsexs>=3.01'
  'perl-ipc-cmd>=0.72'
  'perl-test-deep'
  'perl-test-exception'
  'perl-test-warn')
provides=(
  "perl-pdl-core=${pkgver}")
options=('!emptydirs')
source=("http://search.cpan.org/CPAN/authors/id/C/CH/CHM/${_distdir}.tar.gz")
sha512sums=('e6c45b8f2a5b4ab64611ad18288a784e38165231639445b5c96da6e735f15dcb463de7f4b164ff8309fc27939ec6cd2134ec0d6026ec9715cceb8f6094a2714b')

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 pure_install
  find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
}