[arch-commits] Commit in (zfp zfp/repos zfp/trunk zfp/trunk/PKGBUILD)
Bruno Pagani
archange at archlinux.org
Wed Oct 14 18:26:27 UTC 2020
Date: Wednesday, October 14, 2020 @ 18:26:27
Author: archange
Revision: 723952
Initial addition of zfp to [community].
Required by the incoming ADIOS2.
Added:
zfp/
zfp/repos/
zfp/trunk/
zfp/trunk/PKGBUILD
----------+
PKGBUILD | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
Added: zfp/trunk/PKGBUILD
===================================================================
--- zfp/trunk/PKGBUILD (rev 0)
+++ zfp/trunk/PKGBUILD 2020-10-14 18:26:27 UTC (rev 723952)
@@ -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