updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / gitosis-necoro-git / PKGBUILD
blob40558a3bfc086a0348a465ef8348d82bfa7cd6f0
1 # Forked from the gitosis-git of Alper KANAT <alperkanat@raptiye.org>
2 # Mantainer: Luca Cesari <mirshann@freakmind.org>
4 pkgname=gitosis-necoro-git
5 pkgver=20110506
6 pkgrel=1
7 pkgdesc="An application to help make hosting git repos easier and safer (Gentoo fork)"
8 url="http://github.com/Necoro/gitosis"
9 arch=('any')
10 license=('GPL2')
11 makedepends=("git" "python2" "python2-distribute")
12 conflicts=('gitosis' 'gitosis-git')
13 provides=('gitosis')
14 install=("gitosis.install")
15 source=()
16 md5sums=()
18 _gitroot="https://github.com/Necoro/gitosis.git"
19 _gitname="gitosis"
21 build() {
22         cd ${srcdir}
23         msg "Connecting to git server..."
25         if [ -d ${srcdir}/${_gitname} ]; then
26                 cd ${_gitname} && git pull origin
27                 msg "The local files are updated."
28         else
29                 git clone ${_gitroot}
30         fi
32         msg "GIT checkout done or server timeout"
33         
34     msg "Running setup.py ..."
35         cd ${srcdir}/${_gitname}
36         python2 setup.py build || return 1
37         python2 setup.py install --root=${pkgdir} || return 1
39         # license
40         install -Dm644 "${srcdir}/${_gitname}/COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
41         
42         # example configs
43         install -Dm644 "${srcdir}/${_gitname}/README.rst" "${pkgdir}/usr/share/doc/${_gitname}/README.rst"
44         install -Dm644 "${srcdir}/${_gitname}/example.conf" "${pkgdir}/usr/share/doc/${_gitname}/example.conf"
45         install -Dm644 "${srcdir}/${_gitname}/gitweb.conf" "${pkgdir}/usr/share/doc/${_gitname}/gitweb.conf"
46         install -Dm644 "${srcdir}/${_gitname}/lighttpd-gitweb.conf" "${pkgdir}/usr/share/doc/${_gitname}/lighttpd-gitweb.conf"