#Maintainer: R S Ananda Murthy <rsamurti@gmail.com>

pkgname=hdf5
pkgver=1.8.4
pkgrel=1am
arch=i486
source=("ftp://ftp.hdfgroup.org/HDF5/current/src/${pkgname}-${pkgver}.tar.gz")
sourcetemplate=http://people.salixos.org/rsamurti/$pkgname
docs=("readme.txt" "copying" "manifest")
url=http://www.hdfgroup.org/HDF5/

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"HDF5 (A library and file format for storing scientific data)"
"HDF5 can store two primary objects: datasets and groups. A dataset is"
"essentially a multidimensional array of data elements, and a group is"
"a structure for organizing objects in an HDF5 file. Using these two"
"basic objects, one can create and store almost any kind of scientific"
"data structure, such as images, arrays of vectors, and structured and"
"unstructured grids. You can also mix and match them in HDF5 files"
"according to your needs."
)

build() {
cd $startdir/src/${pkgname}-${pkgver}

./configure \
  --prefix=/usr \
  --mandir=/usr/man \
  --libdir=/usr/lib${LIBDIRSUFFIX} \
  --docdir=/usr/doc/$pkgname-$pkgver \
  --with-pthread \
  --enable-cxx \
  --enable-fortran \
  --with-ssl \
  --with-zlib \
  --without-szlib \
  --enable-static=no

make || return 1
make check
make install DESTDIR=$startdir/pkg || return 1
}
