1 # Maintainer: Bruno Pagani <archange@archlinux.org>
6 pkgdesc="Modular parametrizable lossy compressor framework for scientific data"
8 url="https://szcompressor.org/"
10 depends=(glibc gcc-libs)
11 makedepends=(cmake gcc-fortran hdf5 netcdf python python-numpy swig)
12 source=(https://github.com/szcompressor/SZ/releases/download/v${pkgver}/sz-${pkgver}.tar.gz)
13 sha256sums=('32a820daf6019156a777300389d2392e4498a5c9daffce7be754cd0a5ba8729c')
16 cmake -B build -S SZ-${pkgver} \
17 -DCMAKE_INSTALL_PREFIX=/usr \
18 -DCMAKE_SKIP_RPATH=ON \
20 -DBUILD_HDF5_FILTER=ON \
21 -DBUILD_NETCDF_READER=ON \
23 -DBUILD_PYTHON_WRAPPER=ON \
24 -DBUILD_SZ_EXAMPLES=ON
29 make -C build DESTDIR="${pkgdir}" install
30 install -Dm644 SZ-${pkgver}/copyright-and-BSD-license.txt -t "${pkgdir}"/usr/share/licenses/${pkgname}
31 rm "${pkgdir}"/usr/bin/test*