1 # Maintainer: Bruno Pagani <archange@archlinux.org>
6 pkgdesc="The Adaptable Input/Output System version 2"
8 url="https://adios2.readthedocs.io/en/latest/"
10 depends=(blosc bzip2 glibc gcc-libs hdf5 libfabric libpng nlohmann-json
11 openmpi pugixml pybind11 sz yaml-cpp zeromq zfp zlib)
12 # with mgard does not build currently, not time to investigate
13 makedepends=(cmake gcc-fortran gtest python python-mpi4py python-numpy)
14 source=(https://github.com/ornladios/ADIOS2/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz
15 https://github.com/ornladios/ADIOS2/commit/bc67316d.patch
16 https://github.com/ornladios/ADIOS2/commit/c3967d39.patch
17 https://github.com/ornladios/ADIOS2/commit/a04395e0.patch
18 https://github.com/ornladios/ADIOS2/commit/a6b6c668.patch)
19 sha256sums=('4906ab1899721c41dd918dddb039ba2848a1fb0cf84f3a563a1179b9d6ee0d9f'
20 '7998b6624cafefadd800158b4b5184c341f93dd446f55237cdfbf1f025bf4823'
21 '8edc0438b4e84afa51d730b94355cd7f28620351ab3bd438a46272fb6cd91aa1'
22 'da2dacee292eef376c488b4efc2b7fe23b619da278828ef6d74b6549ba1caea6'
23 'ca2998c08abd157d6d27866bdb8c964327a46f05fd273ee6a0fa1622dff6b80e')
26 # Fix build with HDF5 1.14
27 patch -d ${pkgname^^}-${pkgver} -p1 < bc67316d.patch
28 patch -d ${pkgname^^}-${pkgver} -p1 < c3967d39.patch
29 patch -d ${pkgname^^}-${pkgver} -p1 < a04395e0.patch
30 patch -d ${pkgname^^}-${pkgver} -p1 < a6b6c668.patch
34 cmake -B build -S ${pkgname^^}-${pkgver} \
35 -DCMAKE_INSTALL_PREFIX=/usr \
36 -DCMAKE_SKIP_RPATH=ON \
37 -DADIOS2_USE_EXTERNAL_DEPENDENCIES=ON \
38 -DADIOS2_HAVE_HDF5_VOL=OFF \
39 -DADIOS2_BUILD_EXAMPLES=OFF #\
40 #-DMGARD_INCLUDE_DIR=/usr/include/mgard
41 #-DADIOS2_HAVE_HDF5_VOL needs hdf5-openmpi
42 make VERBOSE=1 -C build
46 make -C build DESTDIR="${pkgdir}" install