updated on Wed Jan 11 08:01:35 UTC 2012
[aur-mirror.git] / gitosis-git / PKGBUILD
blobdf0ac5162ce975d62e80fa2127cb1ceea2b70650
1 # Maintainer: Alper KANAT <alperkanat@raptiye.org>
3 pkgname=gitosis-git
4 pkgver=20101221
5 pkgrel=1
6 pkgdesc="An application to help make hosting git repos easier and safer."
7 url="http://eagain.net/gitweb/?p=gitosis.git"
8 arch=('any')
9 license=('GPL2')
10 makedepends=("git" "python2" "python2-distribute")
11 conflicts=("gitosis")
12 provides=("gitosis")
13 install=("gitosis.install")
14 source=()
15 md5sums=()
17 _gitroot="git://eagain.net/gitosis.git"
18 _gitname="gitosis"
20 build() {
21         cd ${srcdir}
22         msg "Connecting to gitosis git server..."
24         if [ -d ${srcdir}/${_gitname} ]; then
25                 cd ${_gitname} && git pull origin
26                 msg "The local files are updated."
27         else
28                 git clone ${_gitroot}
29         fi
31         msg "GIT checkout done or server timeout"
32         msg "Starting make..."
34         cd ${srcdir}/${_gitname}
35         python2 setup.py build || return 1
36         python2 setup.py install --root=${pkgdir} || return 1
38         # license
39         install -Dm644 "${srcdir}/${_gitname}/COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
40         
41         # example configs
42         install -Dm644 "${srcdir}/${_gitname}/README.rst" "${pkgdir}/usr/share/doc/${_gitname}/README.rst"
43         install -Dm644 "${srcdir}/${_gitname}/example.conf" "${pkgdir}/usr/share/doc/${_gitname}/example.conf"
44         install -Dm644 "${srcdir}/${_gitname}/gitweb.conf" "${pkgdir}/usr/share/doc/${_gitname}/gitweb.conf"
45         install -Dm644 "${srcdir}/${_gitname}/lighttpd-gitweb.conf" "${pkgdir}/usr/share/doc/${_gitname}/lighttpd-gitweb.conf"