1 # Contributor: Apkawa <apkawa@gmail.com>
6 pkgdesc="Documentation for south, an intelligent schema migrations for Django applications"
8 url="http://south.aeracode.org/browser"
10 makedepends=('mercurial' 'python-sphinx')
11 groups=(django-plugins)
13 _hgroot=http://bitbucket.org/andrewgodwin/
19 if [ -d ${_hgrepo}/.hg ]; then
22 hg update -C --rev ${pkgver}
24 hg clone ${_hgroot} ${_hgrepo} --rev ${pkgver} || return 1
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