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

Bruno Pagani archange at archlinux.org
Wed Oct 14 18:26:57 UTC 2020


    Date: Wednesday, October 14, 2020 @ 18:26:56
  Author: archange
Revision: 723953

archrelease: copy trunk to community-x86_64

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

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

Copied: zfp/repos/community-x86_64/PKGBUILD (from rev 723952, zfp/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2020-10-14 18:26:56 UTC (rev 723953)
@@ -0,0 +1,34 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+pkgname=zfp
+pkgver=0.5.5
+pkgrel=2
+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