core/hdf5/PKGBUILD
2016-02-27 12:10:47 +00:00

39 lines
964 B
Bash

# Maintainer abveritas@chakra-project.org
pkgname=hdf5
pkgver=1.8.16
pkgrel=1
arch=('x86_64')
pkgdesc="General purpose library and file format for storing scientific data"
url="http://www.hdfgroup.org/HDF5/"
license=('custom')
depends=('zlib' 'sh')
source=("ftp://ftp.hdfgroup.org/HDF5/current/src/${pkgname}-${pkgver/_/-}.tar.bz2")
options=('!libtool')
md5sums=('79c1593573ebddf734eee8d43ecfe483')
build() {
cd $srcdir/${pkgname}-${pkgver/_/-}
# export CFLAGS="${CFLAGS/O2/O0}"
# export CXXFLAGS="${CFLAGS}"
./configure --prefix=/usr --disable-static \
--disable-hl \
--enable-threadsafe \
--enable-production \
--with-pic \
--docdir=/usr/share/doc/hdf5/ \
--with-pthread=/usr/lib/ \
--disable-sharedlib-rpath
make
}
package() {
cd $srcdir/${pkgname}-${pkgver/_/-}
make prefix=$pkgdir/usr install
install -Dm644 $srcdir/${pkgname}-${pkgver/_/-}/COPYING \
$pkgdir/usr/share/licenses/${pkgname}/LICENSE
}