updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / python-mongokit-hg / PKGBUILD
blob96f8354c40e201fa2c887fa9c21a61efc0cc2a94
1 # Contributor: totoloco <totoloco at ushcompu dot com dot ar>
2 pkgname=python-mongokit-hg
3 pkgver=320
4 pkgrel=1
5 pkgdesc="Framework that try to keep its simplicity when you manage mongodb in python."
6 arch=('any')
7 url="http://bitbucket.org/namlook/mongokit/"
8 license=('BSD')
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"
16 _hgrepo="mongokit"
18 build() {
19   cd "$srcdir"
20   msg "Connecting to Mercurial server...."
22   if [ -d $_hgrepo ] ; then
23     cd $_hgrepo
24     hg pull -u || return 1
25     msg "The local files are updated."
26   else
27     hg clone $_hgroot/$_hgrepo || return 1
28   fi
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"
37   #
38   # BUILD HERE
39   #
41   python setup.py install --root=${startdir}/pkg
42