updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / hookbox-git / PKGBUILD
blobf2139cfcf1fb2f032b6dbc402bd9a101b2f286f0
1 # Maintainer: Baptiste Jonglez <zerstorer@free.fr>
2 pkgname=hookbox-git
3 pkgver=20110402
4 pkgrel=1
5 pkgdesc="Hookbox is a Comet server and message queue that tightly integrates with your existing web application via web hooks and a REST interface."
6 arch=('any')
7 url="http://hookbox.org/"
8 license=('MIT')
9 # watch for eventlet package rename (in AUR), since it is a python2 package
10 depends=('python2' 'python-eventlet' 'python2-restkit' 'python2-pygments'
11   'python-paste' 'python2-csp_eventlet' 'python2-rtjp_eventlet')
12 makedepends=('git' 'python2-distribute')
13 provides=('hookbox')
15 _gitroot="http://github.com/hookbox/hookbox.git"
16 _gitname="hookbox"
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"
39   python2 setup.py install --prefix=/usr --root=$pkgdir --optimize=1