updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / hdf4-nonetcdf / PKGBUILD
blob0cb39b1adf2648ee21c7c1dbcdbb25441cedcc40
1 # Contributor: David Scholl <djscholl@gmail.com>
2 # Contributor: Fazlul Shahriar <fshahriar@gmail.com>
3 pkgname=hdf4-nonetcdf
4 pkgver=2.6
5 pkgrel=2
6 pkgdesc="General purpose library and file format for storing scientific data. (NetCDF disabled)"
7 arch=('i686' 'x86_64')
8 url="http://www.hdfgroup.org/hdf4.html"
9 license=('custom')
10 depends=('zlib' 'libjpeg')
11 makedepends=('gcc-libs' 'gcc-fortran' 'flex' 'bison')
12 provides=('hdf4')
13 conflicts=('hdf4')
14 source=(http://www.hdfgroup.org/ftp/HDF/HDF_Current/src/hdf-4.$pkgver.tar.gz)
15 md5sums=('e8fdfa1ec925d7d85f5215f5027d27c0')
17 build() {
18   cd $startdir/src/hdf-4.$pkgver
19   export CFLAGS=$CFLAGS" -fPIC"
20   ./configure --prefix=/usr F77=gfortran --disable-netcdf --enable-shared --disable-fortran
21   make || return 1
22   make prefix=$startdir/pkg/usr install || return 1
23   
24   pkgdir=$startdir/pkg
25   # rename files that conflict with netcdf package
26   mv $pkgdir/usr/bin/ncdump $pkgdir/usr/bin/hdf4_ncdump
27   mv $pkgdir/usr/bin/ncgen $pkgdir/usr/bin/hdf4_ncgen
28   mv $pkgdir/usr/share/man/man1/ncdump.1 $pkgdir/usr/share/man/man1/hdf4_ncdump.1
29   mv $pkgdir/usr/share/man/man1/ncgen.1 $pkgdir/usr/share/man/man1/hdf4_ncgen.1
30   
31   mkdir -p $pkgdir/usr/share/licenses/$pkgname
32   cp $startdir/src/hdf-4.$pkgver/COPYING $pkgdir/usr/share/licenses/$pkgname