[arch-commits] Commit in (mgard mgard/repos mgard/trunk mgard/trunk/PKGBUILD)
Bruno Pagani
archange at archlinux.org
Wed Oct 14 17:21:52 UTC 2020
Date: Wednesday, October 14, 2020 @ 17:21:52
Author: archange
Revision: 723946
Initial addition of mgard in [community].
Required for the incoming ADIOS2.
Added:
mgard/
mgard/repos/
mgard/trunk/
mgard/trunk/PKGBUILD
----------+
PKGBUILD | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
Added: mgard/trunk/PKGBUILD
===================================================================
--- mgard/trunk/PKGBUILD (rev 0)
+++ mgard/trunk/PKGBUILD 2020-10-14 17:21:52 UTC (rev 723946)
@@ -0,0 +1,29 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+pkgname=mgard
+pkgver=0.1.0
+pkgrel=1
+pkgdesc="MultiGrid Adaptive Reduction of Data"
+arch=(x86_64)
+url="https://github.com/CODARcode/MGARD"
+license=(Apache)
+depends=(glibc zlib zstd)
+makedepends=(cmake)
+source=(${url}/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha256sums=('254cc77ca678c746c3808d7fb76c289fce17f2cbb84a1892d6cd2ea078be62f0')
+
+build() {
+ cmake -B build -S ${pkgname^^}-${pkgver} \
+ -DCMAKE_INSTALL_PREFIX=/usr
+ make -C build
+}
+
+check() {
+ cd build
+ # https://github.com/CODARcode/MGARD/issues/105
+ ctest -v || warning "Tests failed"
+}
+
+package() {
+ make -C build DESTDIR="${pkgdir}" install
+}
More information about the arch-commits
mailing list