1 # Maintainer: Antony Male <antony dot mail at gmail dot com>
2 # Contributer: Alper KANAT <alperkanat@raptiye.org>
4 pkgname=gitosis-wildcard
7 pkgdesc="An application to help make hosting git repos easier and safer, with wildcard support"
8 url="http://zcentric.com/2010/08/25/gitosis-with-wildcard-support"
11 makedepends=('git' 'python2' 'python2-distribute')
12 conflicts=('gitosis', 'gitosis-git')
14 install=('gitosis.install')
16 _gitroot="git://github.com/mzupan/gitosis.git"
21 msg "Connecting to gitosis git server..."
23 if [ -d $_gitname ]; then
24 cd $_gitname && git pull origin
25 msg "The local files are updated."
30 msg "GIT checkout done or server timeout"
31 msg "Starting build..."
33 cd "$srcdir/$_gitname"
34 python2 setup.py build
37 cd "$srcdir/$_gitname"
38 python2 setup.py install --root=${pkgdir}
41 install -Dm644 "${srcdir}/${_gitname}/README.rst" "${pkgdir}/usr/share/doc/${_gitname}/README.rst"
42 install -Dm644 "${srcdir}/${_gitname}/example.conf" "${pkgdir}/usr/share/doc/${_gitname}/example.conf"
43 install -Dm644 "${srcdir}/${_gitname}/gitweb.conf" "${pkgdir}/usr/share/doc/${_gitname}/gitweb.conf"
44 install -Dm644 "${srcdir}/${_gitname}/lighttpd-gitweb.conf" "${pkgdir}/usr/share/doc/${_gitname}/lighttpd-gitweb.conf"