updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / lxr / PKGBUILD
blobac261f43d895a7f0f42b9e3a910d898019ca3325
1 # Maintainer: Markus Opitz <mastero23 at gmail dot com>
3 pkgname=lxr
4 pkgver=0.9.10
5 pkgrel=2
6 pkgdesc="A general purpose source code indexer and cross-referencer"
7 arch=('i686' 'x86_64')
8 url="http://sourceforge.net/projects/lxr/"
9 license=('GPL2')
10 depends=(ctags perl-dbi perl-file-mmagic swish-e)
11 optdepends=('apache' 'mod_perl' 'mysql' 'perl-dbd-mysql' 'perl-dbd-pg' 'perl-file-mmagic' 'postgresql' 'swish-e')
12 provides=('lxr')
13 conflicts=('lxr-cvs')
14 backup=('etc/lxr/lxr.conf')
15 options=(emptydirs)
16 install=lxr.install
17 source=(http://downloads.sourceforge.net/project/lxr/stable/$pkgname-$pkgver/$pkgname-$pkgver.tgz
18         httpd.lxr.conf
19         lxr.conf
20         misc.patch)
21 md5sums=('c6e7716a96f1ca9e151b02d5de423c66'
22          '5a4fcef7e6887bdd97499e99b2c498c8'
23          '742f7f8d597103fff7c5a3039cf51034'
24          'dbffdc45c7498272eecee802ce685141')
26 build() {
27   cd "$srcdir/$pkgname-$pkgver"
29   patch -p1 < $srcdir/misc.patch
31   mkdir -p $pkgdir/etc/httpd/conf/extra/
32   cp $srcdir/httpd.lxr.conf $pkgdir/etc/httpd/conf/extra/lxr.conf
34   mkdir -p $pkgdir/etc/lxr
35   cp $srcdir/lxr.conf swish-e.conf $pkgdir/etc/lxr/
37   mkdir -p $pkgdir/usr/bin/vendor_perl
38   cp genxref $pkgdir/usr/bin/vendor_perl
40   mkdir -p $pkgdir/usr/share/doc/lxr
41   cp BUGS ChangeLog CHANGES CREDITS.txt HACKING INSTALL RELEASING $pkgdir/usr/share/doc/lxr
43   mkdir -p $pkgdir/usr/share/lxr/templates
44   cp initdb-* $pkgdir/usr/share/lxr
45   cp templates/{*.html,*.css,*.png} $pkgdir/usr/share/lxr/templates/
47   mkdir -p $pkgdir/usr/share/perl5/vendor_perl
48   cp -r lib/LXR $pkgdir/usr/share/perl5/vendor_perl/
49   cp Local.pm LXRversion.pm $pkgdir/usr/share/perl5/vendor_perl/LXR/
51   mkdir -p $pkgdir/usr/lib/lxr/cgi-bin
52   cp diff ident search source $pkgdir/usr/lib/lxr/cgi-bin
53   ln -sf /usr/share/lxr/templates/ $pkgdir/usr/lib/lxr/cgi-bin/templates