apache-ant: add ant binary to PATH

This commit is contained in:
Drake 2012-01-13 00:52:38 +00:00
parent 993fc0978d
commit 903367fe8d

View File

@ -9,7 +9,7 @@ source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=apache-ant
pkgver=1.8.2
pkgrel=1
pkgrel=2
pkgdesc="A java-based build tool."
arch=('i686' 'x86_64')
license=('APACHE')
@ -42,6 +42,10 @@ package() {
# symlink to junit so it's on the javac build path for ant
ln -sf /usr/share/java/junit.jar "${pkgdir}"/usr/share/java/apache-ant/lib/
# symlink the binary into PATH
mkdir -p "${pkgdir}"/usr/bin
ln -sf "${pkgdir}"/usr/share/java/apache-ant/bin/ant "${pkgdir}"/usr/bin/ant
# fix python2 path
sed -i 's|/usr/bin/python|/usr/bin/python2|' "${pkgdir}"/usr/share/java/apache-ant/bin/runant.py