updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / south-hg / PKGBUILD
blobda85911b00c6f1f01ea62465fe3996da9f1b806f
1 # Contributor: Tiago Pierezan Camargo <tcamargo@gmail.com>
2 # Maintainer: Gour <gour@gour-nitai.com>
3 pkgname=south-hg  
4 pkgver=349
5 pkgrel=1 
6 pkgdesc="Intelligent schema migrations for Django applications"
7 url='http://south.aeracode.org'
8 arch=('i686' 'x86_64')
9 license=('Apache')
10 depends=('python')
11 makedepends=('setuptools' 'django')
12 conflicts=('south')
13 source=()
14 md5sums=()
16 _hgroot=http://bitbucket.org/andrewgodwin/
17 _hgrepo=south
19 build() {
20   cd ${srcdir}
22    if [ -d ${_hgrepo}/.hg ]; then
23        cd ${_hgrepo}
24        hg pull
25        hg update -C --rev ${pkgver}
26    else
27        hg clone ${_hgroot} ${_hgrepo} --rev ${pkgver} || return 1
28    fi
30    msg "Mercurial checkout done or server timeout"
31    msg "Starting building..."
33    rm -rf "${srcdir}/${_hgrepo}-build"
34    cp -r "${srcdir}/${_hgrepo}" "${srcdir}/${_hgrepo}-build"
35    cd "${srcdir}/${_hgrepo}"
37    python setup.py install --root=${pkgdir} || return 1