[arch-commits] Commit in sz/repos (community-x86_64 community-x86_64/PKGBUILD)

Bruno Pagani archange at archlinux.org
Wed Oct 14 19:43:55 UTC 2020


    Date: Wednesday, October 14, 2020 @ 19:43:55
  Author: archange
Revision: 723959

archrelease: copy trunk to community-x86_64

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

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

Copied: sz/repos/community-x86_64/PKGBUILD (from rev 723958, sz/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2020-10-14 19:43:55 UTC (rev 723959)
@@ -0,0 +1,30 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+pkgname=sz
+pkgver=2.1.10
+pkgrel=1
+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