1 # Contributor: totoloco <totoloco at ushcompu dot com dot ar>
2 pkgname=python-mongokit-hg
5 pkgdesc="Framework that try to keep its simplicity when you manage mongodb in python."
7 url="http://bitbucket.org/namlook/mongokit/"
9 depends=('python-pymongo')
10 makedepends=('mercurial')
11 provides=('python-mongokit')
12 conflicts=('python-mongokit')
13 replaces=('python-mongokit')
15 _hgroot="http://bitbucket.org/namlook"
20 msg "Connecting to Mercurial server...."
22 if [ -d $_hgrepo ] ; then
24 hg pull -u || return 1
25 msg "The local files are updated."
27 hg clone $_hgroot/$_hgrepo || return 1
30 msg "Mercurial checkout done or server timeout"
31 msg "Starting make..."
33 rm -rf "$srcdir/$_hgrepo-build"
34 cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
35 cd "$srcdir/$_hgrepo-build"
41 python setup.py install --root=${startdir}/pkg