2016-02-27 20:10:47 +08:00
|
|
|
# Maintainer abveritas@chakra-project.org
|
2010-10-12 03:38:47 +08:00
|
|
|
|
|
|
|
pkgname=hdf5
|
2016-11-22 07:37:47 +08:00
|
|
|
pkgver=1.8.18
|
2010-10-12 03:38:47 +08:00
|
|
|
pkgrel=1
|
2012-11-04 12:51:14 +08:00
|
|
|
arch=('x86_64')
|
2010-10-12 03:38:47 +08:00
|
|
|
pkgdesc="General purpose library and file format for storing scientific data"
|
|
|
|
url="http://www.hdfgroup.org/HDF5/"
|
|
|
|
license=('custom')
|
|
|
|
depends=('zlib' 'sh')
|
2016-11-22 07:37:47 +08:00
|
|
|
source=("https://support.hdfgroup.org/ftp/HDF5/current18/src/${pkgname}-${pkgver}.tar.bz2")
|
2010-10-12 03:38:47 +08:00
|
|
|
options=('!libtool')
|
2016-11-22 07:37:47 +08:00
|
|
|
md5sums=('29117bf488887f89888f9304c8ebea0b')
|
2010-10-12 03:38:47 +08:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $srcdir/${pkgname}-${pkgver/_/-}
|
2016-02-27 20:10:47 +08:00
|
|
|
# export CFLAGS="${CFLAGS/O2/O0}"
|
|
|
|
# export CXXFLAGS="${CFLAGS}"
|
2010-10-12 03:38:47 +08:00
|
|
|
./configure --prefix=/usr --disable-static \
|
2016-02-27 20:10:47 +08:00
|
|
|
--disable-hl \
|
2010-10-12 03:38:47 +08:00
|
|
|
--enable-threadsafe \
|
|
|
|
--enable-production \
|
|
|
|
--with-pic \
|
|
|
|
--docdir=/usr/share/doc/hdf5/ \
|
|
|
|
--with-pthread=/usr/lib/ \
|
|
|
|
--disable-sharedlib-rpath
|
2012-11-04 12:51:14 +08:00
|
|
|
make
|
2010-10-12 03:38:47 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $srcdir/${pkgname}-${pkgver/_/-}
|
|
|
|
|
2016-02-27 20:10:47 +08:00
|
|
|
make prefix=$pkgdir/usr install
|
2010-10-12 03:38:47 +08:00
|
|
|
|
2016-02-27 20:10:47 +08:00
|
|
|
install -Dm644 $srcdir/${pkgname}-${pkgver/_/-}/COPYING \
|
2010-10-12 03:38:47 +08:00
|
|
|
$pkgdir/usr/share/licenses/${pkgname}/LICENSE
|
|
|
|
}
|
|
|
|
|