From 675e871ff36bc984aca0670b3e262c939b30ffe9 Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Wed, 30 Apr 2014 20:36:39 +0200 Subject: [PATCH] apache-ant: cleaning up unneeded files; link ant to /usr/bin --- srcpkgs/apache-ant/template | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/srcpkgs/apache-ant/template b/srcpkgs/apache-ant/template index e505b5da0b6..2c5e2956205 100644 --- a/srcpkgs/apache-ant/template +++ b/srcpkgs/apache-ant/template @@ -1,7 +1,7 @@ # Template file for 'apache-ant' pkgname="apache-ant" version="1.9.3" -revision=1 +revision=2 short_desc="Java library and command-line tool that help building software" maintainer="Enno Boland " license="Apache License" @@ -27,13 +27,18 @@ do_install() { JAVA_HOME=/usr/share/java ./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}" + short_desc+=" - documentation" + depends="${sourcepkg}>=${version}_${revision}" noarch="yes" - pkg_install() { - vmove $_prefix/manual - } + pkg_install() { + vmove $_prefix/manual + } }