summaryrefslogtreecommitdiff
path: root/java/apache-ant/PKGBUILD
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-06-23 23:26:31 -0600
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-06-23 23:26:31 -0600
commitf80f55a091fa231f7118fc27d32b50ceb6e1c087 (patch)
treecdb1fbf0e49b568c15e03c5c8790989d2825cba4 /java/apache-ant/PKGBUILD
parent7d32e705f11f0d623d136440bd84bdedb2e48b29 (diff)
downloadabslibre-f80f55a091fa231f7118fc27d32b50ceb6e1c087.tar.gz
abslibre-f80f55a091fa231f7118fc27d32b50ceb6e1c087.tar.bz2
abslibre-f80f55a091fa231f7118fc27d32b50ceb6e1c087.zip
java/apache-ant: install maven artifacts
Diffstat (limited to 'java/apache-ant/PKGBUILD')
-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