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

Evangelos Foutras foutrelis at archlinux.org
Thu Nov 12 17:10:46 UTC 2020


    Date: Thursday, November 12, 2020 @ 17:10:46
  Author: foutrelis
Revision: 752310

archrelease: copy trunk to community-staging-x86_64

Added:
  zfp/repos/community-staging-x86_64/
  zfp/repos/community-staging-x86_64/PKGBUILD
    (from rev 752309, zfp/trunk/PKGBUILD)

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

Copied: zfp/repos/community-staging-x86_64/PKGBUILD (from rev 752309, zfp/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-11-12 17:10:46 UTC (rev 752310)
@@ -0,0 +1,34 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+pkgname=zfp
+pkgver=0.5.5
+pkgrel=3
+pkgdesc="Compressed numerical arrays that support high-speed random access"
+arch=(x86_64)
+url="https://computing.llnl.gov/projects/floating-point-compression"
+license=(BSD)
+depends=(glibc gcc-libs)
+makedepends=(cmake gcc-fortran cython python python-numpy)
+source=(https://github.com/LLNL/zfp/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha256sums=('6a7f4934489087d9c117a4af327fd6495ea757924f4df467b9c537abf8bd86c4')
+
+build() {
+  cmake -B build -S ${pkgname}-${pkgver} \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_SKIP_RPATH=ON \
+    -DBUILD_CFP=ON \
+    -DBUILD_ZFPY=ON \
+    -DBUILD_ZFORP=ON
+  make -C build
+}
+
+check() {
+  cd build
+  LD_LIBRARY_PATH="$(pwd)"/lib/ ctest -v --output-on-failure
+}
+
+package() {
+  make -C build DESTDIR="${pkgdir}" install
+  install -D build/bin/zfp -t "${pkgdir}"/usr/bin
+  install -Dm644 ${pkgname}-${pkgver}/LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}
+}



More information about the arch-commits mailing list