1 # Forked from the gitosis-git of Alper KANAT <alperkanat@raptiye.org>
2 # Mantainer: Luca Cesari <mirshann@freakmind.org>
4 pkgname=gitosis-necoro-git
7 pkgdesc="An application to help make hosting git repos easier and safer (Gentoo fork)"
8 url="http://github.com/Necoro/gitosis"
11 makedepends=("git" "python2" "python2-distribute")
12 conflicts=('gitosis' 'gitosis-git')
14 install=("gitosis.install")
18 _gitroot="https://github.com/Necoro/gitosis.git"
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."
32 msg "GIT checkout done or server timeout"
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
40 install -Dm644 "${srcdir}/${_gitname}/COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
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"