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