mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
34 lines
1,003 B
Bash
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
|
|
}
|