aboutsummaryrefslogtreecommitdiffstats
path: root/testing/hdf5/APKBUILD
blob: 4c703e3e6cde3d8939ca8e3599a0586edf10aedc (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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Contributor: Isaac Dunham <ibid.ag@gmail.com>
# Maintainer:
#
# HDF5 depends on zlib and provides a C interface by default.
# Optionally, it can be built with szip (which has limitations on
# commercial use and thus is non-free), MPI, and C++ and Fortran bindings.
# C++ and Fortran bindings may not be thread-safe:
# building either and passing --enable-threadsafe is unsupported.
# Additionally, the 'high-level' bindings are incompatible with threadsafe
# builds, due to inadequate locking.

pkgname=hdf5
pkgver=1.8.18
_pkgver=$pkgver
pkgrel=0
pkgdesc="HDF5 is a data model, library, and file format for storing and managing data"
url="http://www.hdfgroup.org/HDF5/"
arch="all"
license="custom"
depends=""
depends_dev="zlib-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://www.hdfgroup.org/ftp/HDF5/current18/src/hdf5-$_pkgver.tar.bz2"

builddir="$srcdir"/hdf5-$_pkgver

build() {
	cd "$builddir"
	update_config_sub || return 1
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--disable-threadsafe \
		--enable-cxx \
		--enable-direct-vfd \
		|| return 1
	make || return 1
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install || return 1
	install -d "$pkgdir"/usr/share/licenses/"$pkgname"
	install -c -m 0644 COPYING "$pkgdir"/usr/share/licenses/"$pkgname"/COPYING
}

dev() {
	mkdir -p "$subpkgdir"/usr/share
	mv "$pkgdir"/usr/share/hdf5_examples/ "$subpkgdir"/usr/share
	default_dev
}

md5sums="29117bf488887f89888f9304c8ebea0b  hdf5-1.8.18.tar.bz2"
sha256sums="01c6deadf4211f86922400da82c7a8b5b50dc8fc1ce0b5912de3066af316a48c  hdf5-1.8.18.tar.bz2"
sha512sums="01f6d14bdd3be2ced9c63cc9e1820cd7ea11db649ff9f3a3055c18c4b0fffe777fd23baad536e3bce31c4d76fe17db64a3972762e1bb4d232927c1ca140e72b2  hdf5-1.8.18.tar.bz2"