1 # Maintainer: Markus Opitz <mastero23 at gmail dot com>
6 pkgdesc="A general purpose source code indexer and cross-referencer"
8 url="http://sourceforge.net/projects/lxr/"
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')
14 backup=('etc/lxr/lxr.conf')
17 source=(http://downloads.sourceforge.net/project/lxr/stable/$pkgname-$pkgver/$pkgname-$pkgver.tgz
21 md5sums=('c6e7716a96f1ca9e151b02d5de423c66'
22 '5a4fcef7e6887bdd97499e99b2c498c8'
23 '742f7f8d597103fff7c5a3039cf51034'
24 'dbffdc45c7498272eecee802ce685141')
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