summaryrefslogtreecommitdiff
path: root/java/apache-ant
diff options
context:
space:
mode:
Diffstat (limited to 'java/apache-ant')
-rw-r--r--java/apache-ant/PKGBUILD14
1 files changed, 12 insertions, 2 deletions
diff --git a/java/apache-ant/PKGBUILD b/java/apache-ant/PKGBUILD
index 9f9c77c28..dfda3c28d 100644
--- a/java/apache-ant/PKGBUILD
+++ b/java/apache-ant/PKGBUILD
@@ -12,9 +12,10 @@ provides=("apache-ant-libre=$pkgver")
replaces=("apache-ant-libre")
conflicts=("apache-ant-libre")
-pkgrel=2
+pkgrel=3
arch=('any')
depends=('java-environment')
+makedepends=('jh')
_mirror=http://archive.apache.org/dist
source=($_mirror/ant/source/${pkgname}-${pkgver}-src.tar.bz2
@@ -98,9 +99,18 @@ package() {
install -d "${pkgdir}"/usr/share/doc/${pkgname}
install -d "${pkgdir}"/usr/share/licenses/${pkgname}
+ cd "${pkgdir}"/${ANT_HOME}/lib
+ for pom in *.pom; do
+ a=${pom%.pom}
+ base=$(jh mvn-basename org.apache.ant $a $pkgver)
+ install -d "${pkgdir}${base%/*}"
+ ln -sf ${ANT_HOME}/lib/$a.pom "${pkgdir}${base}".pom
+ ln -sf ${ANT_HOME}/lib/$a.jar "${pkgdir}${base}".jar
+ done
+
cd "${pkgdir}"/${ANT_HOME}
for prog in bin/*; do
- ln -sf ${ANT_HOME}/$prog "${pkgdir}"/usr/bin
+ ln -sf ${ANT_HOME}/$prog "${pkgdir}"/usr/bin
done
ln -sf ${ANT_HOME}/{README,WHATSNEW} "${pkgdir}"/usr/share/doc/${pkgname}
ln -sf ${ANT_HOME}/docs "${pkgdir}"/usr/share/doc/${pkgname}/html