1 # Maintainer: Yngve Inntjore Levinsen <yngve.inntjore.levinsen@cern.ch>
6 pkgdesc="Python interface to Mad-X"
7 url="http://cern.ch/pymad"
9 depends=('gcc-libs' 'libx11' 'madx-svn' 'python2')
10 makedepends=('git' 'cython')
11 arch=('i686' 'x86_64')
14 _gitroot=https://github.com/pymad/pymad.git
18 if [ -d $_gitname/.git ]; then
19 (cd $_gitname && git pull)
21 git clone $_gitroot $_gitname
24 msg "GIT clone done or server timeout"
26 cd ${srcdir}/${_gitname}/src
27 [ -d "build" ] && rm -rf build
28 python2 setup.py build
32 cd ${srcdir}/${_gitname}/src
33 python2 setup.py install --prefix=${pkgdir}/usr