blob: 75b756006c450b9697ecdf4db018f1e1f4284e13 (
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
|
# Maintainer: Erich Eckner <arch at eckner dot net>
pkgname=perl-pdl
_pkgname='PDL'
pkgver=2.015
pkgrel=1
pkgdesc="the Perl Data Language"
arch=('x86_64' 'i686')
url="http://pdl.perl.org/"
license=('GPL' 'PerlArtistic')
depends=('perl-devel-checklib' 'perl-astro-fits-header'
'perl-convert-uu' 'perl-file-map' 'perl-inline-c' 'perl-module-compile'
'hdf4' 'perl-gd')
makedepends=('perl-extutils-f77' 'perl-test-exception' 'perl-test-warn' 'perl-test-deep' 'perl-file-map')
options=('!emptydirs')
source=("http://search.cpan.org/CPAN/authors/id/C/CH/CHM/${_pkgname}-${pkgver}.tar.gz"
"gsl_sf_ellint.pd.diff")
sha256sums=('0b7ef32e443e62c62569b8092f507f1a035d990430c80bdcb263dc7a2e85b684'
'54f2096547bf2518ad4f8390897c81cc8b904a407b5cd07c8f8387a8a6a4c3fb')
prepare() {
cd ${srcdir}/${_pkgname}-${pkgver}/Lib/GSL/SF/ellint
patch -p0 < ${srcdir}/gsl_sf_ellint.pd.diff
}
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}/${_pkgname}-${pkgver}"
/usr/bin/perl Makefile.PL
make
)
}
check() {
cd "${srcdir}/${_pkgname}-${pkgver}"
( export PERL_MM_USE_DEFAULT=1 PERL5LIB=""
make test
)
}
package() {
cd "${srcdir}/${_pkgname}-${pkgver}"
make pure_install
find "$pkgdir" -name .packlist -o -name perllocal.pod -delete
}
|