# $Id: PKGBUILD 147983 2012-01-29 11:26:22Z ronald $ # Maintainer: Ronald van Haren # Contributor: Stefan Husmann # Contributor: damir # Contributor: Tom K # Contributor: Jed Brown # Contributor: Simone Pezzuto pkgname=hdf5-openmpi pkgver=1.8.8 pkgrel=1 arch=('i686' 'x86_64') pkgdesc="General purpose library and file format for storing scientific data (OpenMPI version)" url="http://www.hdfgroup.org/HDF5/" license=('custom') depends=('zlib' 'sh' 'openmpi') makedepends=('time') provides=('hdf5') conflicts=('hdf5') source=(ftp://ftp.hdfgroup.org/HDF5/current/src/hdf5-${pkgver/_/-}.tar.bz2) options=('!libtool') sha1sums=('1bc16883ecd631840b70857bea637a06eb0155da') _pkgname=hdf5 build() { cd $srcdir/${_pkgname}-${pkgver/_/-} export CFLAGS="${CFLAGS/O2/O0}" export CXXFLAGS="${CFLAGS}" ./configure \ CXX="mpicxx" \ CC="mpicc" \ FC="mpif90" \ F9X="mpif90" \ RUNPARALLEL="mpirun" \ OMPI_MCA_disable_memory_allocator=1 \ --prefix=/usr \ --with-pthread=/usr/lib/ \ --enable-linux-lfs \ --enable-unsupported \ --enable-shared \ --disable-static \ --enable-production=yes \ --with-zlib \ --with-default-api-version=v18 \ --enable-parallel=yes \ --enable-cxx \ --disable-sharedlib-rpath make } package() { cd $srcdir/${_pkgname}-${pkgver/_/-} make -j1 DESTDIR=${pkgdir} install install -d -m755 $pkgdir/usr/share/$_pkgname mv $pkgdir/usr/share/{hdf5_examples,$_pkgname/examples} install -d -m755 $pkgdir/usr/share/licenses/${_pkgname} install -m644 $srcdir/${_pkgname}-${pkgver/_/-}/COPYING \ $pkgdir/usr/share/licenses/${_pkgname}/LICENSE }