upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / mgard / repos / community-x86_64 / PKGBUILD
blob6f103a53dcaf167989bbd32d7d2df85581f4e573
1 # Maintainer: Bruno Pagani <archange@archlinux.org>
3 pkgname=mgard
4 pkgver=1.0.0
5 pkgrel=1
6 pkgdesc="MultiGrid Adaptive Reduction of Data"
7 arch=(x86_64)
8 url="https://github.com/CODARcode/MGARD"
9 license=(Apache)
10 depends=(blas lapack glibc yaml-cpp zlib zstd)
11 makedepends=(cmake) # tclap 1.4 required but unreleased
12 # mgard requires catch2 3.x which is currently unreleased
13 #checkdepends=(catch2)
14 source=(${url}/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz)
15 sha256sums=('2dd153abc9bef7d87923cdefca6243b2050b7522e1d2b196e04c73c5cee6e880')
17 build() {
18   cmake -B build -S ${pkgname^^}-${pkgver} \
19     -DCMAKE_INSTALL_PREFIX=/usr
20   make -C build
23 check() {
24   cd build
25   ctest -v --output-on-failure
28 package() {
29   make -C build DESTDIR="${pkgdir}" install
30   # Uneeded file
31   rm "${pkgdir}"/usr/include/mgard/MGARDConfig.hpp.in