[arch-commits] Commit in sz/repos (2 files)

Felix Yan felixonmars at archlinux.org
Thu Nov 12 17:36:27 UTC 2020


    Date: Thursday, November 12, 2020 @ 17:36:25
  Author: felixonmars
Revision: 752707

archrelease: copy trunk to community-staging-x86_64

Added:
  sz/repos/community-staging-x86_64/
  sz/repos/community-staging-x86_64/PKGBUILD
    (from rev 752706, sz/trunk/PKGBUILD)

----------+
 PKGBUILD |   30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

Copied: sz/repos/community-staging-x86_64/PKGBUILD (from rev 752706, sz/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-11-12 17:36:25 UTC (rev 752707)
@@ -0,0 +1,30 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+pkgname=sz
+pkgver=2.1.10
+pkgrel=2
+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=('3aba7619bdb5412218f162696f946c9d3a3df5acf128ddc685b21e45c11f6ae3')
+
+build() {
+  cmake -B build -S ${pkgname}-${pkgver} \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_SKIP_RPATH=ON \
+    -DBUILD_FORTRAN=ON \
+    -DBUILD_HDF5_FILTER=ON \
+    -DBUILD_NETCDF_READER=ON \
+    -DBUILD_PYTHON_WRAPPER=ON
+  make -C build
+}
+
+package() {
+  make -C build DESTDIR="${pkgdir}" install
+  install -Dm644 ${pkgname}-${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