summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f09636712cbac50a92f97969ef80fa382be0db31 (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
# Maintainer: Lucas H. Gabrielli <heitzmann@gmail.com>
pkgname=h5utils-git
pkgver=1.13.r9.ge17b135
pkgrel=1
pkgdesc='A set of utilities for visualization and conversion of scientific data in the free, portable HDF5 format'
arch=('i686' 'x86_64')
url='https://github.com/stevengj/h5utils'
license=('MIT' 'GPL')
depends=('hdf5' 'libpng')
optdepends=('libmatheval: support symbolic expressions')
options=('!makeflags')
provides=('h5utils')
conflicts=('h5utils')
source=('git+https://github.com/stevengj/h5utils.git')
sha256sums=('SKIP')

pkgver() {
	cd "${srcdir}/h5utils"
	git describe --long --tags | sed -r 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
}

build() {
	cd "${srcdir}/h5utils"
	./autogen.sh --prefix=/usr
	make
}

package() {
	cd "${srcdir}/h5utils"
	make DESTDIR="${pkgdir}" install
	install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}