updated on Thu Jan 12 20:00:29 UTC 2012
[aur-mirror.git] / hdf4 / PKGBUILD
blob30d0f088c718f3f833596bcb3e80989150783b04
1 # Maintainer: David Scholl <djscholl at gmail dot com>
2 pkgname=hdf4
3 pkgver=2.6
4 pkgrel=2
5 pkgdesc="General purpose library and file format for storing scientific data."
6 arch=('i686' 'x86_64')
7 url="http://www.hdfgroup.org/hdf4.html"
8 license=('custom')
9 depends=('zlib' 'libjpeg-turbo')
10 makedepends=('gcc-libs' 'gcc-fortran' 'flex' 'bison')
11 conflicts=('netcdf')
12 source=(http://www.hdfgroup.org/ftp/HDF/HDF_Current/src/hdf-4.$pkgver.tar.gz)
13 md5sums=('e8fdfa1ec925d7d85f5215f5027d27c0')
15 build() {
16   cd $srcdir/hdf-4.$pkgver
17   export CFLAGS=$CFLAGS" -fPIC"
18   export LDFLAGS=" -l:libjpeg.so.8 "$LDFLAGS
19   ./configure --prefix=/usr F77=gfortran 
20   make || return 1
21   make prefix=$pkgdir/usr install || return 1
22   mkdir -p $pkgdir/usr/share/licenses/$pkgname
23   cp $srcdir/hdf-4.$pkgver/COPYING $pkgdir/usr/share/licenses/$pkgname