updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / gitosis-wildcard / PKGBUILD
blob00d05008c4a1a3bc1a10c889da3359adab1a5c11
1 # Maintainer: Antony Male <antony dot mail at gmail dot com>
2 # Contributer: Alper KANAT <alperkanat@raptiye.org>
4 pkgname=gitosis-wildcard
5 pkgver=20110207
6 pkgrel=1
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"
9 arch=('any')
10 license=('GPL2')
11 makedepends=('git' 'python2' 'python2-distribute')
12 conflicts=('gitosis', 'gitosis-git')
13 provides=('gitosis')
14 install=('gitosis.install')
16 _gitroot="git://github.com/mzupan/gitosis.git"
17 _gitname="gitosis"
19 build() {
20         cd "$srcdir"
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."
26         else
27                 git clone $_gitroot
28         fi
30         msg "GIT checkout done or server timeout"
31         msg "Starting build..."
33         cd "$srcdir/$_gitname"
34         python2 setup.py build
36 package() {
37         cd "$srcdir/$_gitname"
38         python2 setup.py install --root=${pkgdir}
40         # example configs
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"