summaryrefslogtreecommitdiffstats
path: root/extra/lucene/Pkgfile
blob: 11c38fa0e2335fb564ae0e1e139616447bcb2c63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Description: A high-performance, full-featured text search engine library written entirely in Java
# URL: http://lucene.apache.org/java/docs/index.html
# Packager: Sibelle at free dot fr
# Maintainer: NuTyX packager team
# Depends on: jdk

name=lucene
version=3.0.3
release=2

source=(http://www.mirrorservice.org/sites/ftp.apache.org/$name/java/$version/$name-$version-src.tar.gz)

build() {
	cd $name-$version
	install -m755 -d $PKG/usr/share/java/
	
	# install all *.jar files
  	for i in `find $SRC -name '*.jar'`; do
    		install $i $PKG/usr/share/java/ 
	done

	# create symlinks
	cd $PKG/usr/share/java/
  	for i in `ls -1 *$version*.jar`; do
    		j=${i//-$version/}
    	ln -sv $i $j
  	done
  
  	# and one with different version numbering
  	ln -sv servlet-api-2.4.jar servlet-api.jar
}