summaryrefslogtreecommitdiff
path: root/extra/hdf5
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /extra/hdf5
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'extra/hdf5')
-rw-r--r--extra/hdf5/PKGBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/extra/hdf5/PKGBUILD b/extra/hdf5/PKGBUILD
new file mode 100644
index 000000000..b419b96cc
--- /dev/null
+++ b/extra/hdf5/PKGBUILD
@@ -0,0 +1,44 @@
+# Maintainer: Ronald van Haren <ronald.archlinux.org>
+# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
+# Contributor: damir <damir@archlinux.org>
+# Contributor: Tom K <tomk@runbox.com>
+
+pkgname=hdf5
+pkgver=1.8.5_patch1
+pkgrel=1
+arch=('i686' 'x86_64')
+pkgdesc="General purpose library and file format for storing scientific data"
+url="http://www.hdfgroup.org/HDF5/"
+license=('custom')
+depends=('zlib' 'sh')
+makedepends=('time')
+source=(ftp://ftp.hdfgroup.org/HDF5/current/src/${pkgname}-${pkgver/_/-}.tar.bz2)
+options=('!libtool')
+md5sums=('27308a145e6c208d57db3f6f2634a0f6')
+
+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 || return 1
+}
+
+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
+}
+