updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / python-cyclone-git / PKGBUILD
blobbed9174568d2afe87a630ff5b80ad3cc12e42c95
1 # Contributor: Maurizio Porrato <maurizio.porrato@gmail.com>
2 pkgname=python-cyclone-git
3 pkgver=20101030
4 pkgrel=2
5 pkgdesc="Twisted based Tornado framework clone"
6 license=('apache')
7 url="http://github.com/fiorix/cyclone"
8 _gitroot="git://github.com/fiorix/cyclone.git"
9 _gitname="python-cyclone"
10 arch=(any)
11 conflicts=('python-cyclone')
12 provides=('python-cyclone')
13 makedepends=('git' 'python2-distribute')
14 depends=('twisted')
16 build() {
17   cd ${srcdir}/
19   msg "Connecting to the GIT server...."
20   if [[ -d ${srcdir}/${_gitname} ]] ; then
21     cd ${_gitname}
22     git pull origin
23     msg "The local files are updated..."
24   else
25     git clone ${_gitroot} ${_gitname}
26   fi
27     
28   msg "GIT checkout done."
30   msg "Starting make for: ${pkgname}"
31     
32   if [[ -d ${srcdir}/${_gitname}-build ]]; then
33     msg "Cleaning the previous build directory..." 
34     rm -rf ${srcdir}/${_gitname}-build
35   fi
37   git clone ${srcdir}/${_gitname} ${srcdir}/${_gitname}-build
38     
39   cd ${srcdir}/${_gitname}-build
40         
41   msg "Starting configure..."
43   python2 setup.py install --optimize=1 --prefix=/usr --root=$startdir/pkg  --optimize=1 || return 1