summaryrefslogtreecommitdiff
path: root/hdf4/PKGBUILD
blob: 090d5355c43e6f3f3b46caf685fcb9135865a691 (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
# Maintainer:  Erich Eckner <arch at eckner dot net>
# Contributor: David Scholl <djscholl at gmail dot com>
pkgname=hdf4
pkgver=2.13
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=("https://support.hdfgroup.org/ftp/HDF/releases/HDF4.${pkgver}/src/hdf-4.${pkgver}.tar.bz2")
sha512sums=('d7be2b3650255590b72db4a6931325ec0af256db4b846cfe886c76bf24034901b2ba7a7e546566f426d265b1793287ea3f95d8fbd818a3d018fa6813a4541657')

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
  mkdir -p $pkgdir/usr/share/licenses/$pkgname
  cp $srcdir/hdf-4.$pkgver/COPYING $pkgdir/usr/share/licenses/$pkgname
}