archrelease: copy trunk to community-x86_64
[ArchLinux/community.git] / sz / repos / community-x86_64 / PKGBUILD
blob506cae3c57d4897e943b166fc406efd7a79da26b
1 # Maintainer: Bruno Pagani <archange@archlinux.org>
3 pkgname=sz
4 pkgver=2.1.12.5
5 pkgrel=3
6 pkgdesc="Modular parametrizable lossy compressor framework for scientific data"
7 arch=(x86_64)
8 url="https://szcompressor.org/"
9 license=(BSD)
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')
15 build() {
16   cmake -B build -S SZ-${pkgver} \
17     -DCMAKE_INSTALL_PREFIX=/usr \
18     -DCMAKE_SKIP_RPATH=ON \
19     -DBUILD_FORTRAN=ON \
20     -DBUILD_HDF5_FILTER=ON \
21     -DBUILD_NETCDF_READER=ON \
22     -DBUILD_OPENMP=ON \
23     -DBUILD_PYTHON_WRAPPER=ON \
24     -DBUILD_SZ_EXAMPLES=ON
25   make -C build
28 package() {
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*