From f80f55a091fa231f7118fc27d32b50ceb6e1c087 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 23 Jun 2013 23:26:31 -0600 Subject: java/apache-ant: install maven artifacts --- java/apache-ant/PKGBUILD | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'java/apache-ant') 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 -- cgit v1.2.3