summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 099ae287cf54efd202f4909815ec7e8c14b73c03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# 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')
checkdepends=('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

    cmake \
      -DCMAKE_INSTALL_PREFIX=/usr \
      -DH5CPP_CONAN=DISABLE \
      ..

    make
}

package() {
    cd $srcdir/$pkgname-$pkgver/build
    make DESTDIR="$pkgdir" install
}

check() {
    cd $srcdir/$pkgname-$pkgver/build
    ctest
}

# Local Variables:
# tab-width: 4
# End: