updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / south-docs-hg / PKGBUILD
blobe665a96aaecc6ce16660106b0d848dad67618978
1 # Contributor: Apkawa <apkawa@gmail.com>
3 pkgname=south-docs-hg
4 pkgver=788
5 pkgrel=1
6 pkgdesc="Documentation for south, an intelligent schema migrations for Django applications"
7 arch=('any')
8 url="http://south.aeracode.org/browser"
9 license=('Apache')
10 makedepends=('mercurial' 'python-sphinx')
11 groups=(django-plugins)
13 _hgroot=http://bitbucket.org/andrewgodwin/
14 _hgrepo=south
15 _hgdocs=${pkgname}
17 build() {
18     cd $srcdir
19     if [ -d ${_hgrepo}/.hg ]; then
20         cd ${_hgrepo}
21         hg pull
22         hg update -C --rev ${pkgver}
23     else
24         hg clone ${_hgroot} ${_hgrepo} --rev ${pkgver} || return 1
25     fi
28     msg "Mercurial clone done or server timeout"
29     cp -r ${_hgrepo}/docs  ${_hgdocs}-build
30     sphinx-build ${_hgdocs}-build $_hgdocs
31     mkdir ${pkgdir}/usr/share/doc/ -p
32     mv ${_hgdocs}/  ${pkgdir}/usr/share/doc/${_hgdocs}/
33     rm -rf ${srcdir}/${_hgdocs}-build