updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / python2-enable-doc-git / PKGBUILD
blobfd87d4703089174af696a656e83f79f8fa0df2e5
1 # Maintainer: Andrzej Giniewicz <gginiu@gmail.com>
2 pkgname=python2-enable-doc-git
3 pkgver=20110623
4 pkgrel=1
5 pkgdesc="Documentation for Enable"
6 arch=('any')
7 url="https://github.com/enthought/enable"
8 license=('BSD')
9 makedepends=('git' 'python2-distribute')
10 provides=('python2-enable-doc')
11 conflicts=('python2-enable-doc' 'python-ets-enable-doc-svn')
12 replaces=('python-ets-enable-doc-svn')
13 options=(!emptydirs)
15 _gitroot="https://github.com/enthought/enable.git"
16 _gitname="enable"
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/enable
41   cp -r build/html/* "${pkgdir}"/usr/share/doc/enthought/enable