1 # Contributor: Panos Mavrogiorgos <pmav99@gmail.com>
7 pkgdesc="EVTK (Export VTK) allows exporting data to binary VTK files for visualization and data analysis."
8 url="http://bitbucket.org/pauloh/pyevtk"
10 depends=('python2' 'mercurial' 'python2-numpy')
11 optdepends=('cython: for dev only')
12 makedepends=('python2' 'mercurial')
17 _hgroot="http://bitbucket.org/pauloh"
22 msg "Connecting to Mercurial server...."
24 if [ -d $_hgrepo ] ; then
26 hg pull -u || return 1
27 msg "The local files are updated."
29 hg clone $_hgroot $_hgrepo || return 1
32 msg "Mercurial checkout done or server timeout"
33 msg "Starting make..."
35 rm -rf "$srcdir/$_hgrepo-build"
36 cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
37 cd "$srcdir/$_hgrepo-build"
42 python2 setup.py install --root="$pkgdir" --optimize=1 || return 1