1 # Maintainer: Andrzej Giniewicz <gginiu@gmail.com>
2 pkgname=python2-ets-doc-git
5 pkgdesc="Documentation for ETS"
7 url="https://github.com/enthought/ets"
9 depends=('python2-apptools-doc-git' 'python2-blockcanvas-doc-git' 'python2-chaco-doc-git'
10 'python2-codetools-doc-git' 'python2-enable-doc-git' 'python2-envisage-doc-git'
11 'python2-etsdevtools-doc-git' 'python2-mayavi-doc-git' 'python2-pyface-doc-git'
12 'python2-scimath-doc-git' 'python2-traits-doc-git' 'python2-traitsui-doc-git')
13 makedepends=('git' 'python2-distribute')
14 conflicts=('python2-ets-doc')
17 _gitroot="https://github.com/enthought/ets.git"
22 msg "Connecting to GIT server...."
24 if [ -d $_gitname ] ; then
25 cd $_gitname && git pull origin
26 msg "The local files are updated."
28 git clone $_gitroot $_gitname
31 msg "GIT checkout done or server timeout"
32 msg "Starting make..."
34 rm -rf "$srcdir/$_gitname-build"
35 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
36 cd "$srcdir/$_gitname-build"
42 install -d "${pkgdir}"/usr/share/doc/enthought/ets
43 cp -r build/html/* "${pkgdir}"/usr/share/doc/enthought/ets