summaryrefslogtreecommitdiff
path: root/hdf4
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-04-08 11:45:30 +0200
committerErich Eckner <git@eckner.net>2016-04-11 11:29:19 +0200
commit70cad5494b83979742424cf4f99e02e02dd3beb1 (patch)
treef96e90aa8bd2da7be1a1667262bc8b8a96a8a975 /hdf4
parent1cb8ba9bcf2f0c7cbb7522866566a8915e958988 (diff)
downloadarchlinuxewe.git.save-70cad5494b83979742424cf4f99e02e02dd3beb1.tar.xz
hdf4 neu
Diffstat (limited to 'hdf4')
-rwxr-xr-xhdf4/PKGBUILD29
1 files changed, 29 insertions, 0 deletions
diff --git a/hdf4/PKGBUILD b/hdf4/PKGBUILD
new file mode 100755
index 00000000..e725553f
--- /dev/null
+++ b/hdf4/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: David Scholl <djscholl at gmail dot com>
+pkgname=hdf4
+pkgver=2.11
+pkgrel=1
+pkgdesc="General purpose library and file format for storing scientific data."
+arch=('i686' 'x86_64')
+url="http://www.hdfgroup.org/hdf4.html"
+license=('custom')
+depends=('zlib' 'libjpeg-turbo')
+makedepends=('gcc-libs' 'gcc-fortran' 'flex' 'bison')
+conflicts=('netcdf')
+source=(http://www.hdfgroup.org/ftp/HDF/HDF_Current/src/hdf-4.2.11.tar.gz)
+sha256sums=('c3f7753b2fb9b27d09eced4d2164605f111f270c9a60b37a578f7de02de86d24')
+
+build() {
+ cd $srcdir/hdf-4.2.11
+ export CFLAGS=$CFLAGS" -fPIC"
+ export LDFLAGS=" -l:libjpeg.so.8 "$LDFLAGS
+ ./configure --prefix=/usr F77=gfortran
+ make
+}
+package() {
+ cd $srcdir/hdf-4.2.11
+ make prefix=$pkgdir/usr install
+ mkdir -p $pkgdir/usr/share/doc/$pkgname
+ mv $pkgdir/usr/examples $pkgdir/usr/share/doc/$pkgname
+ mkdir -p $pkgdir/usr/share/licenses/$pkgname
+ cp $srcdir/hdf-4.2.11/COPYING $pkgdir/usr/share/licenses/$pkgname
+}