summaryrefslogtreecommitdiffstats
path: root/extra/ant/Pkgfile
blob: f16b710fe38178c1f8b8be98523bc4458c801dc3 (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
33
34
# Description: Outils basés sur Java
# URL: http://ant.apache.org/
# Maintainer: NutyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on: jdk, junit
# Run on: jdk,junit

name=ant
version=1.7.1
release=1

source=(http://archive.apache.org/dist/ant/source/apache-ant-$version-src.tar.bz2\
	apache-ant.sh)


build() {
	source /etc/profile
	export CLASSPATH=$CLASSPATH:/usr/share/junit-4.5/junit-4.5.jar:/usr/share/junit-4.5
	cd apache-ant-$version
        sed -i 's|/etc/ant.conf|/etc/ant/ant.conf|' src/script/ant
        mkdir dist
	./build.sh -Ddist.dir=dist/ dist
	mkdir $PKG/opt
	mkdir -p $PKG/etc/{profile.d,ant}
	touch $PKG/etc/ant/ant.conf
	export ANT_HOME=$PKG/opt/ant-$version
#	export JAVA_HOME=/opt/jdk
	./build.sh install-lite
	install -m644  ../apache-ant.sh $PKG/etc/profile.d/
	ln -svf ant-$version $PKG/opt/$name
	ln -v -sf /etc/$name $PKG/opt/$name-$version/etc
}