summaryrefslogtreecommitdiff
path: root/pcr/gitweb/PKGBUILD
blob: 630ac408d7c71344c9c33f486149b58553f985b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Maintainer: Márcio Silva <coadde@lavabit.com>

_pkgname=git
pkgname=gitweb
pkgver=1.8.3.4
pkgrel=1
pkgdesc="web gui for the $_pkgname"
arch=(
  mips64el
  x86_64
  i686
)
backup=etc/httpd/conf/extra/httpd-$pkgname.conf
install=$pkgname.install
url=http://$_pkgname-scm.com/
license=GPL2
depends=(
  curl
  'expat>=2.0'
  $_pkgname=$pkgver
  'perl>=5.10.0'
  perl-error
)
source=(
  http://$_pkgname-core.googlecode.com/files/$_pkgname-$pkgver.tar.gz
  httpd-$pkgname.conf
)
sha512sums=(
  84d2d70622d19200594f4ea8550f00c3bd46657381ea953a2171172faf27ffa8be30c9249e1ed93d983826880c7e78a76884c841212338efdfb7ab38713bdbe1
  9de5078d5782095e3f9e3a0b6e866b03f035b17ce4b5153cd4b994e14d13c80ee905b6b19014571670ea934b68f18222d8a22e5761220e98e651e1accd0477ba
)

build() {
  cd $srcdir/$_pkgname-$pkgver

  make configure

  ./configure --prefix=/usr

  make ${pkgname^^}_PROJECTROOT=/srv/$_pkgname $pkgname
}

package() {
  cd $srcdir/$_pkgname-$pkgver

  make DESTDIR=$pkgdir gitwebdir=/srv/http/$pkgname install-$pkgname

  install -vDm644 $srcdir/httpd-$pkgname.conf $pkgdir/etc/httpd/conf/extra/httpd-$pkgname.conf
}

# vim:set ts=2 sw=2 et: