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