1 # Maintainer: Antoine Pierlot-Garcin <antoine at bokbox dot com>
2 pkgname=python2-pykka-git
5 pkgdesc="Easy to use concurrency abstractions for Python using the actor model"
7 url="http://jodal.github.com/pykka/"
11 optdepends=('python2-gevent: Use gevent based actors from pykka.gevent')
12 provides=('python2-pykka')
13 conflicts=('python2-pykka')
15 _gitroot="git://github.com/jodal/pykka.git"
20 msg "Connecting to GIT server...."
22 if [ -d $_gitname ] ; then
23 cd $_gitname && git pull origin
24 msg "The local files are updated."
26 git clone $_gitroot $_gitname
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"
37 cd "$srcdir/$_gitname-build"
38 python2 setup.py install --prefix=/usr --root="$pkgdir"/ --optimize=1
39 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"