44 lines
1.1 KiB
Bash
44 lines
1.1 KiB
Bash
# Template file for 'apache-ant'
|
|
pkgname="apache-ant"
|
|
version=1.10.0
|
|
revision=1
|
|
short_desc="Java library and command-line tool that help building software"
|
|
maintainer="Enno Boland <gottox@voidlinux.eu>"
|
|
license="Apache License"
|
|
homepage="http://ant.apache.org"
|
|
distfiles="http://mirror.dkd.de/apache/ant/source/apache-ant-${version}-src.tar.bz2"
|
|
checksum=a666b7aee7608739c3ec2a27d7aab5a95ef66e7cc53de91c2738f184edf72b2f
|
|
hostmakedepends="openjdk"
|
|
depends="virtual?java-runtime"
|
|
noarch="yes"
|
|
nocross=yes
|
|
_prefix=usr/share/apache-ant
|
|
|
|
do_configure() {
|
|
# Disable tests
|
|
sed -i 's/jars,test-jar/jars/' build.xml
|
|
}
|
|
do_build() {
|
|
export JAVA_HOME=/usr/lib/jvm/openjdk
|
|
./build.sh -Ddist.dir=$DESTDIR/$_prefix jars
|
|
}
|
|
do_install() {
|
|
export JAVA_HOME=/usr/lib/jvm/openjdk
|
|
./build.sh -Ddist.dir=$DESTDIR/$_prefix dist
|
|
|
|
vinstall ${FILESDIR}/apache-ant.sh 644 etc/profile.d
|
|
rm $DESTDIR/$_prefix/bin/*.bat
|
|
rm $DESTDIR/$_prefix/bin/*.cmd
|
|
|
|
vmkdir usr/bin
|
|
ln -rs $DESTDIR/$_prefix/bin/ant $DESTDIR/usr/bin
|
|
}
|
|
|
|
apache-ant-doc_package() {
|
|
short_desc+=" - documentation"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
noarch="yes"
|
|
pkg_install() {
|
|
vmove $_prefix/manual
|
|
}
|
|
}
|