updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / python2-etsdevtools-doc-git / PKGBUILD
blob10306fa94fb48d10ab2795bebf2b71f385ec804e
1 # Maintainer: Andrzej Giniewicz <gginiu@gmail.com>
2 pkgname=python2-etsdevtools-doc-git
3 pkgver=20110623
4 pkgrel=1
5 pkgdesc="Documentation for Etsdevtools"
6 arch=('any')
7 url="https://github.com/enthought/etsdevtools"
8 license=('BSD')
9 makedepends=('git' 'python2-distribute')
10 provides=('python2-etsdevtools-doc')
11 conflicts=('python2-etsdevtools-doc')
12 options=(!emptydirs)
14 _gitroot="https://github.com/enthought/etsdevtools.git"
15 _gitname="etsdevtools"
17 build() {
18   cd "$srcdir"
19   msg "Connecting to GIT server...."
21   if [ -d $_gitname ] ; then
22     cd $_gitname && git pull origin
23     msg "The local files are updated."
24   else
25     git clone $_gitroot $_gitname
26   fi
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"
35   cd docs
37   make html
39   install -d "${pkgdir}"/usr/share/doc/enthought/etsdevtools
40   cp -r build/html/* "${pkgdir}"/usr/share/doc/enthought/etsdevtools