1 # Maintainer: Igor Nemilentsev <trezorg@gmail.com>
5 pkgdesc="web gui for the fast distributed version control system"
7 url="http://git-scm.com/"
9 depends=('perl>=5.10.0')
10 makedepends=('git' 'autoconf')
14 backup=(etc/gitweb.conf)
15 md5sums=('cc92fddd462349512d9066a7b6154cc6')
17 _gitroot="git://git.kernel.org/pub/scm/git/git.git"
22 if [[ -d $_gitname ]]; then
23 (cd $_gitname && git pull origin)
26 git clone $_gitroot $_gitname
30 make configure || return 1
32 ./configure --prefix=/usr || return 1
34 make gitweb/gitweb.cgi || return 1
38 cd $srcdir/$_gitname/${pkgname%-git}/static
40 for F in gitweb.css gitweb.js git-logo.png git-favicon.png ; do
41 install -Dm644 $F $pkgdir/srv/http/gitweb/$F || return 1
44 install -Dm755 gitweb.cgi $pkgdir/srv/http/gitweb || return 1
45 install -Dm644 README $pkgdir/usr/share/doc/gitweb/README || return 1
46 install -Dm644 INSTALL $pkgdir/usr/share/doc/gitweb || return 1
47 install -Dm644 $srcdir/gitweb.conf $pkgdir/etc/gitweb.conf || return 1
50 # vim:set ts=2 sw=2 et: