4 pkgdesc="A sandbox module for python. Based on catbox. Used on lpms."
6 url='http://hadronproject.org/'
11 _gitroot="git://gitorious.org/hadron/fermion.git"
16 msg "Connecting to GIT server...."
18 if [ -d $_gitname ] ; then
19 cd $_gitname && git pull origin
20 msg "The local files are updated."
22 git clone $_gitroot $_gitname
25 msg "GIT checkout done or server timeout"
27 rm -rf "$srcdir/$_gitname-build"
28 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
33 cd "$srcdir/$_gitname-build"
34 sed -i 's/python/python2/' setup.py
35 python2 setup.py build
36 mkdir -p $pkgdir/usr/lib/python2.7/site-packages
37 cp build/lib.linux-i686-2.7/fermion.so $pkgdir/usr/lib/python2.7/site-packages/fermion.so