summaryrefslogtreecommitdiffstats
path: root/base/ant/Pkgfile
blob: b504caf4ac2f44aab3824539be2a67555f208dc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Description: Outils basés sur Java
# URL: http://ant.apache.org/
# Maintainer: NutyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on: jdk

name=ant
version=1.7.1
release=2
source=(http://archive.apache.org/dist/ant/binaries/apache-ant-$version-bin.tar.bz2)


build() {
	cd apache-ant-$version
	mkdir -p $PKG/etc/profile.d
	install -d $PKG/usr/{bin,lib/ant}
	cp -rf * $PKG/usr/lib/ant
	ln -sf /usr/lib/ant/bin/ant $PKG/usr/bin/ant
	rm -r $PKG/usr/lib/ant/bin/*.bat
	rm -r $PKG/usr/lib/ant/docs
	rm -r $PKG/usr/lib/ant/{KEYS,LICENS*,README,NOTICE,WHATSNEW,INSTALL}
	rm -r $PKG/usr/lib/ant/lib/README
}