updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / viewcvs / PKGBUILD
blob8fdaf5226d8dffdaf6f5eac673e202ed69f0f5c4
1 pkgname=viewcvs
2 pkgver=0.9.4
3 pkgrel=1
4 pkgdesc="Viewcvs, a web interface to cvs and subversion"
5 url="http://viewcvs.sourceforge.net/"
6 license="GPL"
7 depends=('apache' 'python' 'enscript' 'diffutils' 'rcs' )
8 makedepends=('cvs' 'subversion' 'patch')
9 conflicts=()
10 replaces=()
11 backup=()
12 install=install.viewcvs
13 source=(http://viewvc.tigris.org/files/documents/3330/27671/$pkgname-$pkgver.tar.gz \
14         viewcvs-install.patch)
16 build() {
17         cd $startdir/src/$pkgname-$pkgver
19         # patch to install in $startdir/pkg
20         patch -Np0 -i ../viewcvs-install.patch || return 1
21         sed -i "s@__ROOTDIR@/usr/share/${pkgname}-${pkgver}@g" viewcvs-install
22         sed -i "s@__DESTROOTDIR@${startdir}/pkg/usr/share/${pkgname}-${pkgver}@" viewcvs-install
24         ./viewcvs-install
25         
26         install -m 755 -d $startdir/pkg/home/httpd/cgi-bin
27         install -m 755 $startdir/pkg/usr/share/$pkgname-$pkgver/cgi/query.cgi  $startdir/pkg/home/httpd/cgi-bin/
28         install -m 755 $startdir/pkg/usr/share/$pkgname-$pkgver/cgi/viewcvs.cgi  $startdir/pkg/home/httpd/cgi-bin/
30 md5sums=('a1a09922165f2e2fec08527cdd18b76f' 'b6afe613f412ec1683fc0a2b9a2381ce')