25 lines
759 B
Plaintext
25 lines
759 B
Plaintext
# Packager: Rune Stokka, rune at stokka dot no
|
|
# Maintainer: Simone Rota, sip at crux dot nu
|
|
# Description: Ant is a Java-based build tool.
|
|
# URL: http://ant.apache.org
|
|
# Depends on: jdk
|
|
|
|
name=ant
|
|
version=1.6.5
|
|
release=1
|
|
source=(http://mirrors.publicshout.org/apache/ant/source/apache-${name}-${version}-src.tar.gz)
|
|
|
|
build() {
|
|
cd apache-$name-$version
|
|
export ANT_HOME="/usr/lib/ant"
|
|
export JAVA_HOME="/usr/lib/java"
|
|
export PATH=${PATH}:${ANT_HOME}/bin
|
|
./build.sh -Ddist.dir=$PKG/usr/lib/ant dist
|
|
mkdir $PKG/usr/bin
|
|
ln -sf /usr/lib/ant/bin/ant $PKG/usr/bin/ant
|
|
rm -rf $PKG/usr/lib/ant/bin/*.bat
|
|
rm -rf $PKG/usr/lib/ant/docs
|
|
rm -rf $PKG/usr/lib/ant/{welcome.html,TODO,KEYS,LICENS*,README,NOTICE,WHATSNEW,INSTALL}
|
|
rm -rf $PKG/usr/lib/ant/lib/README
|
|
}
|