updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / hdf5-openmpi / PKGBUILD
blobd927dca86175ec20c4ff55485b5e984069c36e90
1 # Contributor: Jed Brown <jed@59A2.org>
2 pkgname=hdf5-openmpi
3 _pkgname=hdf5
4 _prefix=/usr
5 _mpirun=${_prefix}/bin/mpiexec
6 pkgver=1.8.8
7 _pkgver=1.8.8
8 pkgrel=1
9 arch=("i686" "x86_64")
10 pkgdesc="General purpose library and file format for storing scientific data"
11 url="http://hdfgroup.org/HDF5"
12 license=("custom")
13 provides=(hdf5)
14 conflicts=(hdf5)
15 depends=('zlib' 'bash' 'openmpi' 'gcc-libs')
16 makedepends=('time')
17 source=(ftp://ftp.hdfgroup.org/HDF5/current/src/${_pkgname}-${_pkgver}.tar.gz)
18 md5sums=('1196e668f5592bfb50d1de162eb16cff')
19 options=("!libtool")
21 build() {
22   mkdir -p build && cd build
23   unset CFLAGS
24   unset CXXFLAGS
25   ../${_pkgname}-${_pkgver}/configure   \
26                    FC=${_prefix}/bin/mpif90 \
27                    CC=${_prefix}/bin/mpicc CXX=${_prefix}/bin/mpicxx \
28                    --prefix=${_prefix} \
29                    --enable-parallel \
30                    --enable-hl \
31                    --enable-linux-lfs \
32                    --enable-production \
33                    --enable-fortran \
34                    --enable-shared \
35                    --with-pic \
36                    --docdir=${_prefix}/share/${_pkgname} \
37                    --with-pthread=/usr/lib
38   make
40 package () {
41   cd $srcdir/build
42   unset CFLAGS
43   unset CXXFLAGS
44   make -j1 prefix=${pkgdir}${_prefix} install
46   install -D -m644 ${srcdir}/${_pkgname}-${_pkgver}/COPYING \
47           ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE