updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / python-tornado-git / PKGBUILD
blob6afbbba5894c114e8451283393d099ecebb02f64
1 # Contributor: Anders Bergh <anders1@gmail.com>
2 # Maintainer: Frank Smit <frank/61924/nl>
3 pkgname=python-tornado-git
4 pkgver=20110313
5 pkgrel=2
6 pkgdesc="Open source scalable, non-blocking web server"
7 arch=(any)
8 url="http://www.tornadoweb.org"
9 license=("Apache")
10 depends=("python2>=2.6" "python-pycurl")
11 optdepends=("python-pycurl: to use the httpclient module")
12 makedepends=("git" "setuptools")
13 conflicts=("python-tornado")
14 replaces=("python-tornado")
15 provices=("python-tornado")
17 _gitroot="git://github.com/facebook/tornado.git"
18 _gitname="tornado"
20 build() {
21     cd "$srcdir"
22     msg "Connecting to GIT server...."
24     if [ -d $_gitname ] ; then
25         cd $_gitname && git pull origin
26         msg "The local files are updated."
27     else
28         git clone $_gitroot
29     fi
31     msg "GIT checkout done or server timeout"
32     msg "Starting make..."
34     rm -rf "$srcdir/$_gitname-build"
35     git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
36     cd "$srcdir/$_gitname-build"
38     python2 setup.py install --root="$pkgdir" --prefix=/usr