# Template file for 'apache-ant' pkgname=apache-ant version=1.10.13 revision=2 hostmakedepends="openjdk8" depends="virtual?java-runtime" short_desc="Java library and command-line tool that help building software" maintainer="Enno Boland " license="Apache-2.0" homepage="https://ant.apache.org" distfiles="https://archive.apache.org/dist/ant/source/apache-ant-${version}-src.tar.xz" checksum=2a3de6f5d52f7859e0a18f23d8dcdd64cde05ed262654b2286f74759cf0d68d4 python_version=3 nocross=yes _prefix=usr/share/apache-ant do_configure() { # Disable tests sed -i 's/jars,test-jar/jars/' build.xml . /etc/profile.d/jdk.sh ./bootstrap.sh bootstrap/bin/ant -Ddest=optional -f fetch.xml } do_build() { . /etc/profile.d/jdk.sh bootstrap/bin/ant -Ddist.dir=$DESTDIR/$_prefix jars } do_install() { . /etc/profile.d/jdk.sh bootstrap/bin/ant -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 vdoc "${FILESDIR}/README.voidlinux" } apache-ant-doc_package() { short_desc+=" - documentation" depends="${sourcepkg}>=${version}_${revision}" pkg_install() { vmove $_prefix/manual } }