summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 484123a1c7196e7844e54fb09a0b8c54b83e1549 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Maintainer: Lukasz Pozarlik <lpozarlik@gmail.com>

_gitname=pynbody
_gitbranch=master
pkgbase=python-pynbody-git
pkgname=('python-pynbody-git'
	 'python2-pynbody-git')	 
pkgdesc='Pynbody is a light-weight, portable, format-transparent analysis framework for N-body and hydrodynamic astrophysical simulations'
pkgver=2505.b37d0dba
pkgrel=1
url="http://pynbody.github.io/"
license=('MIT')
arch=('any')
makedepends=('git'
             'cython>=0.2')
optdepends=('python-matplotlib: plotting pynbody built-in plots'
            'ipython: makes using python much easier')
source=("${_gitname}::git://github.com/pynbody/${_gitname}.git#branch=${_gitbranch}")
md5sums=('SKIP')

pkgver() {
  cd "${_gitname}"
  echo "$(git rev-list --count ${_gitbranch}).$(git rev-parse --short ${_gitbranch})"
}

package_python-pynbody-git() {
  depends=('python>=3.3'
           'python-numpy'
           'python-scipy')	 
  cd "${srcdir}/${_gitname}"
  python setup.py install --root="${pkgdir}" --optimize=1
}

package_python2-pynbody-git() {
  depends=('python2>=2.6'
           'python2-numpy'
           'python2-scipy')	 
  PYTHONPATH="/usr/lib/python2.7/site-packages"
  cd "${srcdir}/${_gitname}"
  python2 setup.py install --root="${pkgdir}" --optimize=1
}