1 # Contributor: Dominik Fuchs <dominik.fuchs@wur.nl>
6 pkgdesc="HPGL stands for 'High Performance Geostatistics Library'. The goal of this project is to provide free-to-use and modify high-perfomance geostatistical algorithms (such as Kriging, CoKriging, Sequential Simulation, etc)."
9 url="http://hpgl.sourceforge.net/"
10 depends=('python-numpy' 'python-scipy')
11 makedepends=('setuptools')
17 _gitroot="git://hpgl.git.sourceforge.net/gitroot/hpgl/hpgl"
18 _gitname="hpgl (read-only)"
22 msg "Connecting to GIT server...."
24 if [ -d ${srcdir}/$_gitname ] ; then
25 cd $_gitname && git-pull origin
26 msg "The local files are updated."
31 msg "GIT checkout done or server timeout"
32 msg "Starting make..."
35 cd "$srcdir/hpgl/CLAPACK-3.1.1.1"
37 mv "$srcdir/hpgl/CLAPACK-3.1.1.1/F2CLIBS/libf2c.a" "$srcdir/hpgl/CLAPACK-3.1.1.1/libf2c.a"
39 # configure & compile HPGL
44 # assemble package & install
45 mkdir ${srcdir}/hpgl/temp/geo_bsd
46 cp geo_bsd/*.py ${srcdir}/hpgl/temp/geo_bsd
47 cp geo_bsd/*.so ${srcdir}/hpgl/temp/geo_bsd
48 cp setup.py ${srcdir}/hpgl/temp/
49 cd ${srcdir}/hpgl/temp/
50 python setup.py install --prefix=/usr --root="$pkgdir" || return 1