updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / doxypy-git / PKGBUILD
blobe5487f616d2721b7769f190a6c7a53df95ac4963
1 # Maintainer: Ludovic Fauvet < etix (at) l0cal (dot) com >
3 pkgname=doxypy-git
4 pkgver=20100924
5 pkgrel=1
6 pkgdesc='Python input filter for Doxygen.'
7 url='http://github.com/0xCAFEBABE/doxypy'
8 license='GPL'
9 arch=('i686' 'x86_64')
10 depends=('doxygen')
11 makedepends=('git' 'setuptools')
12 conflicts=('doxypy' 'doxypy-git')
13 replaces=('doxypy' 'doxypy-git')
14 provides=('doxypy')
15 _gitroot='git://github.com/0xCAFEBABE/doxypy.git'
16 _gitname='doxypy'
17 source=()
18 md5sums=()
20 build() {
21   cd ${srcdir}
23   msg "Connecting to GIT server...."
25   if [ -d "${srcdir}/${_gitname}" ] ; then
26     cd ${_gitname} && git pull --rebase
27   else
28     git clone ${_gitroot}
29   fi
31   msg "GIT checkout done or server timeout"
33   if [ -d $_gitname-build ]; then
34     msg 'Removing old build directory'
35     rm -rf $_gitname-build
36   fi
38   msg 'Copying repository to another build directory'
39   cp -r $srcdir/$_gitname $srcdir/$_gitname-build
40   
41   msg "Starting build"
42   cd $srcdir/$_gitname-build/src/
43   
44   msg 'Running setup.py'
45   python setup.py build || return 1
46   python setup.py install --root=$pkgdir || return 1