1 # Maintainer: (epsilom) Xavier Corredor <xavier.corredor.llano (a) gmail.com>
6 pkgdesc="Ncar Command Language, is an interpreted language designed specifically for scientific data analysis and visualization"
7 url="http://www.ncl.ucar.edu"
8 license=('custom:NCL Source Code License')
10 depends=('netcdf' 'hdf5' 'triangle' 'hdf-eos2' 'hdf-eos5' 'hdf4-nonetcdf' 'vis5d+')
11 makedepends=('glibc' 'gcc' 'gcc-fortran' 'libjpeg' 'libpng' 'jasper' 'zlib' 'udunits2' 'unzip' 'tcsh' 'libx11' 'imake' 'g2clib' 'gdal')
13 install=${pkgname}.install
14 source=("http://dl.dropbox.com/u/3383807/ncl_ncarg-$pkgver.tar.gz" 'http://www.netlib.org/voronoi/triangle.zip' 'patch' 'Site.local' 'ncarg.sh' 'hluresfile' 'ncl.install')
15 md5sums=('0afca904b8f51abdd3efada4c0dbaa42'
16 '10aff8d7950f5e0e2fb6dd2e340be2c9'
17 'df350dd92ca05f446484a773ff256d03'
18 '1a0b97ac7d7cb87cff94bea761ba73f9'
19 'e038c36360fd0dd5f15464d1c8db4690'
20 '590590f9f5bb0ed104db880761809bf2'
21 'db4f5d3e89736754655baf08954619a5')
25 #copy triangle library
27 cp triangle.c triangle.h ${pkgname}_ncarg-$pkgver/ni/src/lib/hlu/
29 cd $srcdir/${pkgname}_ncarg-$pkgver
31 #patch compile and install
32 patch -Np1 --ignore-whitespace -i ../../patch
35 #./Configure -ncar || return 1
36 cp $srcdir/Site.local config/
37 sed -i "s|YmakeRoot /usr|YmakeRoot ${pkgdir}/usr|g" config/Site.local
41 export F77_LD="gfortran"
42 export CCompiler="gcc"
43 export FCompiler="gfortran"
44 export CtoFLibraries="-lgfortran"
45 export CTOFLIBS="-lgfortran"
48 make Everything # >> log 2>&1 #|| return 1
50 #fontcaps, and graphcaps
51 cd $srcdir/${pkgname}_ncarg-$pkgver/common/src/fontcap
55 cd $srcdir/${pkgname}_ncarg-$pkgver/common/src/graphcap
59 #set variable ncarg in system
60 install -dv ${pkgdir}/etc/profile.d
61 install --mode=755 $srcdir/ncarg.sh --target-directory=${pkgdir}/etc/profile.d/
64 install --mode=644 $srcdir/hluresfile --target-directory=${pkgdir}/usr/lib/ncarg/
66 #compress and put in order man files
70 mkdir -p $pkgdir/usr/share/man/$listman
71 cd $pkgdir/usr/man/$listman
75 mv ${manfiles}.gz $pkgdir/usr/share/man/$listman/
78 rm -Rf $pkgdir/usr/man/