updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / python2-scimath-doc-git / PKGBUILD
blobd16bec47db59944307ff8673fc389cf4ac40d24c
1 # Maintainer: Andrzej Giniewicz <gginiu@gmail.com>
2 pkgname=python2-scimath-doc-git
3 pkgver=20110623
4 pkgrel=1
5 pkgdesc="Documentation for Scimath"
6 arch=('any')
7 url="https://github.com/enthought/scimath"
8 license=('BSD')
9 makedepends=('git' 'python2-distribute')
10 conflicts=('python2-scimath-doc')
11 options=(!emptydirs)
13 _gitroot="https://github.com/enthought/scimath.git"
14 _gitname="scimath"
16 build() {
17   cd "$srcdir"
18   msg "Connecting to GIT server...."
20   if [ -d $_gitname ] ; then
21     cd $_gitname && git pull origin
22     msg "The local files are updated."
23   else
24     git clone $_gitroot $_gitname
25   fi
27   msg "GIT checkout done or server timeout"
28   msg "Starting make..."
30   rm -rf "$srcdir/$_gitname-build"
31   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
32   cd "$srcdir/$_gitname-build"
34   cd docs
36   make html
38   install -d "${pkgdir}"/usr/share/doc/enthought/scimath
39   cp -r build/html/* "${pkgdir}"/usr/share/doc/enthought/scimath