From 70cad5494b83979742424cf4f99e02e02dd3beb1 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 8 Apr 2016 11:45:30 +0200 Subject: hdf4 neu --- hdf4/PKGBUILD | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100755 hdf4/PKGBUILD (limited to 'hdf4') 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 +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 +} -- cgit v1.2.3-70-g09d2