PKGBUILDs/extra/lucene/PKGBUILD
2009-10-09 21:23:22 -05:00

34 lines
1,003 B
Bash

# $Id: PKGBUILD 53838 2009-10-03 14:36:54Z andyrtr $
# Maintainer: AndyRTR <andyrtr@archlinux.org>
# Contributor: Andy Roberts (arooaroo) <dev@andy-roberts.net>
pkgname=lucene
pkgver=2.9.0
pkgrel=1
arch=('any')
pkgdesc="A high-performance, full-featured text search engine library written entirely in Java"
url="http://lucene.apache.org/java/docs/index.html"
license="APACHE"
depends=('java-runtime')
source=(http://www.mirrorservice.org/sites/ftp.apache.org/lucene/java/lucene-${pkgver}.tar.gz)
md5sums=('179f45467c01ca60b632e72bfc39b976')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
install -m755 -d ${pkgdir}/usr/share/java/
# install all *.jar files
for i in `find ${srcdir} -name '*.jar'`; do
install $i ${pkgdir}/usr/share/java/ || return 1
done
# create symlinks
cd ${pkgdir}/usr/share/java/
for i in `ls -1 *${pkgver}*.jar`; do
j=${i//-${pkgver}/}
ln -sv $i $j
done
# and one with different version numbering
ln -sv servlet-api-2.4.jar servlet-api.jar
}