Skip to content

Instantly share code, notes, and snippets.

@nestor013
Created October 9, 2023 12:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nestor013/0fbbed030150652a7f960c0573b0a3de to your computer and use it in GitHub Desktop.
Save nestor013/0fbbed030150652a7f960c0573b0a3de to your computer and use it in GitHub Desktop.
PGKBUILD for h5cpp
# Maintainer: Eric Berquist <eric dot berquist at gmail dot com>
# Contributor: Lorenz Steinert <lorenz@steinerts.de>
pkgname=h5cpp
pkgver=0.6.0
pkgrel=1
pkgdesc="h5cpp is a C++ wrapper for HDF5s C-API."
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
url="h5cpp.org"
license=('GPL2')
depends=('boost-libs' 'hdf5')
optdepends=()
makedepends=('cmake' 'boost') # When version issue will be resolved add 'catch2'
source=("https://github.com/ess-dmsc/$pkgname/archive/v$pkgver.tar.gz")
sha256sums=('72b459c92670628d730b3386fe6f4ac61218885afa904f234a181c2022a9f56f')
build() {
cd $srcdir/$pkgname-$pkgver
mkdir -p build
cd build
# -DH5CPP_WITH_BOOST=OFF because filesystem is now in g++/std::
# -DH5CPP_DISABLE_TESTS=ON because catch2 is only version 2.13 and they use version 3.
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DH5CPP_CONAN=DISABLE \
-DH5CPP_WITH_BOOST=OFF \
-DH5CPP_DISABLE_TESTS=ON \
..
make
}
package() {
cd $srcdir/$pkgname-$pkgver/build
make DESTDIR="$pkgdir" install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment