core/hdf5/PKGBUILD

44 lines
1.1 KiB
Bash
Raw Normal View History

2010-10-12 03:38:47 +08:00
#
# Platform Packages for Chakra, part of chakra-project.org
#
# maintainer abveritas@chakra-project.org
2010-10-12 03:38:47 +08:00
pkgname=hdf5
pkgver=1.8.9
2010-10-12 03:38:47 +08:00
pkgrel=1
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')
source=("ftp://ftp.hdfgroup.org/HDF5/current/src/${pkgname}-${pkgver/_/-}.tar.bz2")
2010-10-12 03:38:47 +08:00
options=('!libtool')
md5sums=('33e105583417eff1c57fff910a53cd6f')
2010-10-12 03:38:47 +08:00
build() {
cd $srcdir/${pkgname}-${pkgver/_/-}
export CFLAGS="${CFLAGS/O2/O0}"
export CXXFLAGS="${CFLAGS}"
./configure --prefix=/usr --disable-static \
--enable-hl \
--enable-threadsafe \
--enable-linux-lfs \
--enable-production \
--with-pic \
--docdir=/usr/share/doc/hdf5/ \
--with-pthread=/usr/lib/ \
--disable-sharedlib-rpath
make
2010-10-12 03:38:47 +08:00
}
package() {
cd $srcdir/${pkgname}-${pkgver/_/-}
make -j1 prefix=$pkgdir/usr install
install -d -m755 $pkgdir/usr/share/licenses/${pkgname}
install -m644 $srcdir/${pkgname}-${pkgver/_/-}/COPYING \
$pkgdir/usr/share/licenses/${pkgname}/LICENSE
}