summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6cb8c589d09bd3e05624d650698473cd4804eb8c (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
# Maintainer: Harry Jeffery <harry|@|exec64|.|co|.|uk>

pkgname=libnexus
pkgver=4.4.3
pkgrel=1
pkgdesc="libnexus provides functionality for loading/saving the nexus file format for scientific data"
url="http://www.nexusformat.org/"
arch=('x86_64' 'i686')
license=('GPL')
depends=('hdf5-cpp-fortran')
optdepends=('hdf4: hdf4 file format support')
source=("$pkgname::git://github.com/nexusformat/code.git#tag=v${pkgver}")
sha1sums=('SKIP')

build() {
  mkdir -p "${srcdir}/build"
  cd "${srcdir}/build"
  cmake \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_INSTALL_LIBDIR=lib \
    -DENABLE_CXX=ON \
    "${srcdir}/libnexus"
  make
}

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

# vim:set ts=2 sw=2 et: