summaryrefslogtreecommitdiff
path: root/java/apache-ant
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@lavabit.com>2013-06-26 04:13:45 -0300
committerAndré Fabian Silva Delgado <emulatorman@lavabit.com>2013-06-26 04:13:45 -0300
commit4e07a2e620bf18e94f1aeffba2bf047070438388 (patch)
tree7a73a12f665d7bf0c089a3274e7098c1a3e63d0e /java/apache-ant
parentc948275ddbada689626ce86cdddc86fcc6e87d88 (diff)
parent23d897b9d2350accefe8784c08cde55b648a0a75 (diff)
downloadabslibre-4e07a2e620bf18e94f1aeffba2bf047070438388.tar.gz
abslibre-4e07a2e620bf18e94f1aeffba2bf047070438388.tar.bz2
abslibre-4e07a2e620bf18e94f1aeffba2bf047070438388.zip
Merge branch 'master' of ssh://projects.parabolagnulinux.org:1863/srv/git/abslibre
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