summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: aae06a3d7567b6b406d5bc1afe9ade7f64d9fa6c (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
# Maintainer: Anton Leontiev <bunder /at/ t-25.ru>
_pkgname=perl-pdl
pkgname=$_pkgname-git
pkgver=20130413.3530
pkgrel=1
pkgdesc='The Perl Data Language, a perl extension designed for scientific and bulk numeric data processing and display'
arch=('i686' 'x86_64')
url='http://search.cpan.org/dist/PDL'
license=('PerlArtistic' 'GPL')

depends=(
    'perl>=5.8.9'       # To provide ExtUtils::MakeMaker 3.61
    'perl-inline>=0.43'
    'gsl'
)
makedepends=(
    'fftw2'
    'hdf4'
    'perl-opengl>=0.63'
    'plplot'
    'perl-extutils-f77'
    'proj'
)
optdepends=(
    'fftw2: for PDL::FFTW support'
    'hdf4: for HDF files support'
    'perl-astro-fits-header: improved FITS files support'
#   'perl-convert-uu: for the case when something wrong with Unicode support'  # It is necessary on *BSD systems
#   'perl-extutils-f77: for PDL::Slatec and PDL::Minuit support'               # It is not necessary at runtime
    'perl-opengl>=0.63: for PDL::Graphics::TriD support'
    'plplot: for PDL::Graphics::PLplot support'
    'proj: for PDL::GIS::Proj and PDL::Transform::Proj4 support'
)

provides=("$_pkgname")
conflicts=("$_pkgname")
source=("$_pkgname::git+git://pdl.git.sourceforge.net/gitroot/pdl/pdl" 'perldl.conf')
md5sums=('SKIP' '9caa2b89a7f7aabfd7dcfb2c1ef79bc9')

pkgver() {
	cd "$_pkgname"
	echo "$(git log -1 --format="%cd" --date=short | sed 's|-||g').$(git rev-list --count master)"
}

build() {
	cd "$_pkgname"
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor PDLCONF=$srcdir/perldl.conf
    make
}

check() {
	cd "$_pkgname"
	make test
}

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