# Contributor: Isaac Dunham # Maintainer: # # HDF5 depends on zlib and provides a C interface by default. # Optionally, it can be built with szip (which has limitations on # commercial use and thus is non-free), MPI, and C++ and Fortran bindings. # C++ and Fortran bindings may not be thread-safe: # building either and passing --enable-threadsafe is unsupported. # Additionally, the 'high-level' bindings are incompatible with threadsafe # builds, due to inadequate locking. pkgname=hdf5 pkgver=1.10.5 pkgrel=0 pkgdesc="HDF5 is a data model, library, and file format for storing and managing data" url="http://www.hdfgroup.org/HDF5/" arch="all" license="custom" options="!check" # test suite takes a very long time depends_dev="zlib-dev" makedepends="cmake $depends_dev" subpackages="$pkgname-static $pkgname-dev $pkgname-doc" source="http://www.hdfgroup.org/ftp/HDF5/current18/src/$pkgname-$pkgver.tar.bz2" source="https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-${pkgver%.*}/hdf5-$pkgver/src/hdf5-$pkgver.tar.bz2" builddir="$srcdir/$pkgname-$pkgver/build" prepare() { mkdir -p "$builddir" default_prepare } build() { if [ "$CBUILD" != "$CHOST" ]; then CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" fi cmake \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_SHARED_LIBS=True \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ -DCMAKE_C_FLAGS="$CFLAGS" \ ${CMAKE_CROSSOPTS} .. make } check() { make test } package() { make DESTDIR="$pkgdir" install install -d "$pkgdir"/usr/share/licenses/"$pkgname" mv "$pkgdir"/usr/share/COPYING "$pkgdir"/usr/share/licenses/"$pkgname"/COPYING rm "$pkgdir"/usr/share/*.txt } sha512sums="769e43b8672e26fe24ed68da0228c010d3d9bc950ca09f0bc60707911a2f26f2f8415c8abc8ec06e07667148d8cdb3b0c7b3e7860d9b19739629c5dfd5ce73d4 hdf5-1.10.5.tar.bz2"