updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / python2-ets-doc-git / PKGBUILD
blob32e063afe942b86f1a22612709d976905701cb04
1 # Maintainer: Andrzej Giniewicz <gginiu@gmail.com>
2 pkgname=python2-ets-doc-git
3 pkgver=20110623
4 pkgrel=1
5 pkgdesc="Documentation for ETS"
6 arch=('any')
7 url="https://github.com/enthought/ets"
8 license=('BSD')
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')
15 options=(!emptydirs)
17 _gitroot="https://github.com/enthought/ets.git"
18 _gitname="ets"
20 build() {
21   cd "$srcdir"
22   msg "Connecting to GIT server...."
24   if [ -d $_gitname ] ; then
25     cd $_gitname && git pull origin
26     msg "The local files are updated."
27   else
28     git clone $_gitroot $_gitname
29   fi
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"
38   cd docs
40   make html
42   install -d "${pkgdir}"/usr/share/doc/enthought/ets
43   cp -r build/html/* "${pkgdir}"/usr/share/doc/enthought/ets