updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / pyevtk-hg / PKGBUILD
blobec0ee3ccb65e843a3221f84d60a8ceeb73c0ec52
1 # Contributor: Panos Mavrogiorgos <pmav99@gmail.com>
3 pkgname=pyevtk-hg
4 pkgver=22
5 pkgrel=1
6 arch=('i686' 'x86_64')
7 pkgdesc="EVTK (Export VTK) allows exporting data to binary VTK files for visualization and data analysis."
8 url="http://bitbucket.org/pauloh/pyevtk"
9 license=('FreeBSD')
10 depends=('python2' 'mercurial' 'python2-numpy')
11 optdepends=('cython: for dev only')
12 makedepends=('python2' 'mercurial')
13 install=
14 source=()
15 md5sums=()
17 _hgroot="http://bitbucket.org/pauloh"
18 _hgrepo="pyevtk"
20 build() {
21   cd "$srcdir"
22   msg "Connecting to Mercurial server...."
24   if [ -d $_hgrepo ] ; then
25     cd $_hgrepo
26     hg pull -u || return 1
27     msg "The local files are updated."
28   else
29     hg clone $_hgroot $_hgrepo || return 1
30   fi
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"
39   #
40   # BUILD HERE
41   #
42   python2 setup.py install --root="$pkgdir" --optimize=1 || return 1
43