summaryrefslogtreecommitdiff
path: root/perl-pdl/PKGBUILD
blob: 4f595f2cb0deb37b079245cabbe28156c00b6834 (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
# Maintainer: Erich Eckner <arch at eckner dot net>
pkgname=perl-pdl
_pkgname='PDL'
pkgver=2.016
pkgrel='2'
_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-module-compile>=0.23'
  'perl-opengl>=0.6702'
  '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=2.016')
options=('!emptydirs')
source=("http://search.cpan.org/CPAN/authors/id/C/CH/CHM/${_distdir}.tar.gz")
sha512sums=('7822e12688ed94c4c2fdd4937d7ec3869b08d9831ddd7307706e404e11c6f8b40792912d05b6022ede982ba870aae426141d0fd4030d43aef72ca0be46f673c8')

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
}