1 # Maintainer: Andrzej Giniewicz <gginiu@gmail.com>
2 pkgname=python2-chaco-doc-git
5 pkgdesc="Documentation for Chaco"
7 url="https://github.com/enthought/chaco"
9 makedepends=('git' 'python2-distribute')
10 provides=('python2-chaco-doc')
11 conflicts=('python2-chaco-doc' 'python-ets-chaco-doc-svn')
12 replaces=('python-ets-chaco-doc-svn')
15 _gitroot="https://github.com/enthought/chaco.git"
20 msg "Connecting to GIT server...."
22 if [ -d $_gitname ] ; then
23 cd $_gitname && git pull origin
24 msg "The local files are updated."
26 git clone $_gitroot $_gitname
29 msg "GIT checkout done or server timeout"
30 msg "Starting make..."
32 rm -rf "$srcdir/$_gitname-build"
33 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
34 cd "$srcdir/$_gitname-build"
40 install -d "${pkgdir}"/usr/share/doc/enthought/chaco
41 cp -r build/html/* "${pkgdir}"/usr/share/doc/enthought/chaco