summaryrefslogtreecommitdiff
path: root/hdf4/PKGBUILD
blob: 55347770ed8b993e9124b358c8e4b014ac4999a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Maintainer:  Erich Eckner <arch at eckner dot net>
# Contributor: David Scholl <djscholl at gmail dot com>
pkgname=hdf4
pkgver=2.12
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.$pkgver.tar.gz")
sha512sums=('0a1416d6289c92d979310372bdf46e62ac5018d31a1deff407d2f7695522b6f3ede208309049cac0ca96135950e398bbc796d5f2cae55d4ab39f48b06f9eb6a3')

build() {
  cd $srcdir/hdf-4.$pkgver
  export CFLAGS=$CFLAGS" -fPIC"
  export LDFLAGS=" -l:libjpeg.so.8 "$LDFLAGS
  ./configure --prefix=/usr F77=gfortran 
  make
}
package() {
  cd $srcdir/hdf-4.$pkgver
  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.$pkgver/COPYING $pkgdir/usr/share/licenses/$pkgname
}