blob: 9ae67734e1ec18813dce05f8ac86ad8cc9f464b9 (
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
63
64
|
# 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.16
_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="x86_64 x86"
license="custom"
depends=""
depends_dev="zlib-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://www.hdfgroup.org/ftp/HDF5/current/src/hdf5-$_pkgver.tar.bz2"
_builddir="$srcdir"/hdf5-$_pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
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-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
}
md5sums="79c1593573ebddf734eee8d43ecfe483 hdf5-1.8.16.tar.bz2"
sha256sums="13aaae5ba10b70749ee1718816a4b4bfead897c2fcb72c24176e759aec4598c6 hdf5-1.8.16.tar.bz2"
sha512sums="f3ca50ca50bb51057818165fcc36f199a7bd7a9b7c42e299314381a269c4d882f60a780b0005fc2443596e06535ff40019b3483763d926e462a90bea4fe84033 hdf5-1.8.16.tar.bz2"
|