# $Id: PKGBUILD 174838 2013-01-07 19:57:53Z ronald $ # Maintainer: Ronald van Haren # Contributor: Stefan Husmann # Contributor: damir # Contributor: Tom K pkgname=hdf5-cpp-fortran _pkgname=hdf5 pkgver=1.8.11 pkgrel=1 arch=('i686' 'x86_64' 'mips64el') pkgdesc="General purpose library and file format for storing scientific data" url="http://www.hdfgroup.org/HDF5/" license=('custom') depends=('zlib' 'sh' 'gcc-libs') makedepends=('time' 'gcc-fortran') conflicts=('hdf5') provides=('hdf5') source=(ftp://ftp.hdfgroup.org/HDF5/current/src/${_pkgname}-${pkgver/_/-}.tar.bz2) sha1sums=('87ded0894b104cf23a4b965f4ac0a567f8612e5e') build() { cd $srcdir/${_pkgname}-${pkgver/_/-} export CFLAGS="${CFLAGS/O2/O0}" export CXXFLAGS="${CFLAGS}" ./configure --prefix=/usr --disable-static \ --enable-hl \ --enable-cxx \ --enable-fortran \ --enable-linux-lfs \ --enable-production \ --with-pic \ --docdir=/usr/share/doc/hdf5/ \ --with-pthread=/usr/lib/ \ --disable-sharedlib-rpath make } package() { cd $srcdir/${_pkgname}-${pkgver/_/-} make -j1 DESTDIR=${pkgdir} install install -d -m755 $pkgdir/usr/share/licenses/${pkgname} install -m644 $srcdir/${_pkgname}-${pkgver/_/-}/COPYING \ $pkgdir/usr/share/licenses/${pkgname}/LICENSE }