updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / gitweb-git / PKGBUILD
blob2fa49328ecfbe7b566665539d2419227b7f1e095
1 # Maintainer: Igor Nemilentsev <trezorg@gmail.com>
2 pkgname=gitweb-git
3 pkgver=20100629
4 pkgrel=1
5 pkgdesc="web gui for the fast distributed version control system"
6 arch=(any)
7 url="http://git-scm.com/"
8 license=('GPL2')
9 depends=('perl>=5.10.0')
10 makedepends=('git' 'autoconf')
11 provides=(gitweb)
12 conflicts=(gitweb)
13 source=(gitweb.conf)
14 backup=(etc/gitweb.conf)
15 md5sums=('cc92fddd462349512d9066a7b6154cc6')
17 _gitroot="git://git.kernel.org/pub/scm/git/git.git"
18 _gitname="git_git"
20 build() {
21   cd $srcdir
22   if [[ -d $_gitname ]]; then
23   (cd $_gitname && git pull origin)
24   else
25   echo ok
26   git clone $_gitroot $_gitname
27   fi
28   cd $_gitname
30   make configure || return 1
32   ./configure --prefix=/usr || return 1
34   make gitweb/gitweb.cgi || return 1
37 package() {
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
42   done
43   cd ..
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: