updated on Tue Jan 10 16:09:17 UTC 2012
[aur-mirror.git] / python2-pytables-git / PKGBUILD
blob308108cf552271852609b8fa8eec476c128f9d43
1 # Maintainer: Andrzej Giniewicz <gginiu@gmail.com>
2 pkgname=python2-pytables-git
3 pkgver=20110722
4 pkgrel=1
5 pkgdesc="PyTables library for manipulating hdf5 data, git version (liberated pro version)"
6 arch=('i686' 'x86_64')
7 url="http://www.pytables.org/moin"
8 license=('BSD')
9 depends=('lzo2' 'bzip2' 'python2-numpy' 'hdf5' 'python-numexpr' 'cython')
10 makedepends=('git')
11 provides=('python-pytables=2.3b1')
12 conflicts=('python-pytabes')
13 options=(!emptydirs)
15 _gitroot="https://github.com/PyTables/PyTables.git"
16 _gitname="pytables"
18 build() {
19   cd "$srcdir"
20   msg "Connecting to GIT server...."
22   if [ -d $_gitname ] ; then
23     cd $_gitname && git pull origin
24     msg "The local files are updated."
25   else
26     git clone $_gitroot $_gitname
27   fi
29   msg "GIT checkout done or server timeout"
30   msg "Starting make..."
32   rm -rf "$srcdir/$_gitname-build"
33   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
34   cd "$srcdir/$_gitname-build"
36   python2 setup.py install --root="$pkgdir"/ --optimize=1