[arch-commits] Commit in sz/repos (2 files)
Bruno Pagani
archange at gemini.archlinux.org
Wed May 18 20:47:55 UTC 2022
Date: Wednesday, May 18, 2022 @ 20:47:55
Author: archange
Revision: 1209147
archrelease: copy trunk to community-staging-x86_64
Added:
sz/repos/community-staging-x86_64/
sz/repos/community-staging-x86_64/PKGBUILD
(from rev 1209146, sz/trunk/PKGBUILD)
----------+
PKGBUILD | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
Copied: sz/repos/community-staging-x86_64/PKGBUILD (from rev 1209146, sz/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2022-05-18 20:47:55 UTC (rev 1209147)
@@ -0,0 +1,31 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+pkgname=sz
+pkgver=2.1.12
+pkgrel=4
+pkgdesc="Modular parametrizable lossy compressor framework for scientific data"
+arch=(x86_64)
+url="https://szcompressor.org/"
+license=(BSD)
+depends=(glibc gcc-libs)
+makedepends=(cmake gcc-fortran hdf5 netcdf python python-numpy swig)
+source=(https://github.com/szcompressor/SZ/releases/download/v${pkgver}/sz-${pkgver}.tar.gz)
+sha256sums=('3712b2cd7170d1511569e48a208f02dfb72ecd7ad053c321e2880b9083e150de')
+
+build() {
+ cmake -B build -S SZ-${pkgver} \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_SKIP_RPATH=ON \
+ -DBUILD_FORTRAN=ON \
+ -DBUILD_HDF5_FILTER=ON \
+ -DBUILD_NETCDF_READER=ON \
+ -DBUILD_OPENMP=ON \
+ -DBUILD_PYTHON_WRAPPER=ON
+ make -C build
+}
+
+package() {
+ make -C build DESTDIR="${pkgdir}" install
+ install -Dm644 SZ-${pkgver}/copyright-and-BSD-license.txt -t "${pkgdir}"/usr/share/licenses/${pkgname}
+ rm "${pkgdir}"/usr/bin/test*
+}
More information about the arch-commits
mailing list