updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / python2-pykka-git / PKGBUILD
blobb2bece64711dc38b1832885b06927a5d2294ed9f
1 # Maintainer: Antoine Pierlot-Garcin <antoine at bokbox dot com>
2 pkgname=python2-pykka-git
3 pkgver=20110816
4 pkgrel=1
5 pkgdesc="Easy to use concurrency abstractions for Python using the actor model"
6 arch=('any')
7 url="http://jodal.github.com/pykka/"
8 license=('Apache')
9 depends=('python2')
10 makedepends=('git')
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"
16 _gitname="pykka"
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"
36 package() {
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"