summaryrefslogtreecommitdiff
path: root/libre/apache-ant/PKGBUILD
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-02-22 16:48:16 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-02-22 16:48:16 -0500
commit83ae03d05933f57495d41cf2cf376f688f28967a (patch)
tree28518b321d8668f87c9af326cdc083831b28fe5f /libre/apache-ant/PKGBUILD
parent3b800e843f1d7fdeb7694a8f9c5a83d6b6fdc04a (diff)
libre/apache-ant: fix a few (non-critical) symlinks
Diffstat (limited to 'libre/apache-ant/PKGBUILD')
-rw-r--r--libre/apache-ant/PKGBUILD8
1 files changed, 5 insertions, 3 deletions
diff --git a/libre/apache-ant/PKGBUILD b/libre/apache-ant/PKGBUILD
index 1883b7682..a635c6e90 100644
--- a/libre/apache-ant/PKGBUILD
+++ b/libre/apache-ant/PKGBUILD
@@ -12,7 +12,7 @@ provides=("apache-ant-libre=$pkgver")
replaces=("apache-ant-libre")
conflicts=("apache-ant-libre")
-pkgrel=2.1 # newer than Arch's 1.9.3-2
+pkgrel=2.2 # newer than Arch's 1.9.3-2
arch=('any')
depends=('java-environment')
makedepends=('jh')
@@ -116,7 +116,9 @@ package() {
base=$(jh mvn-basename org.apache.ant $a $pkgver)
install -d "${pkgdir}/${base%/*}"
ln -sfvr "${pkgdir}/${ANT_HOME}/lib/$a.pom" "${pkgdir}/${base}.pom"
- ln -sfvr "${pkgdir}/${ANT_HOME}/lib/$a.jar" "${pkgdir}/${base}.jar"
+ if [[ -e "${pkgdir}/${ANT_HOME}/lib/$a.jar" ]]; then
+ ln -sfvr "${pkgdir}/${ANT_HOME}/lib/$a.jar" "${pkgdir}/${base}.jar"
+ fi
done
cd "${pkgdir}"/${ANT_HOME}/bin
@@ -128,7 +130,7 @@ package() {
install -d "${pkgdir}"/usr/share/{doc,licenses}/${pkgname}
ln -sfvr "${pkgdir}/${ANT_HOME}/README" "${pkgdir}/usr/share/doc/${pkgname}/README"
ln -sfvr "${pkgdir}/${ANT_HOME}/WHATSNEW" "${pkgdir}/usr/share/doc/${pkgname}/WHATSNEW"
- ln -sfvr "${pkgdir}/${ANT_HOME}/docs" "${pkgdir}/usr/share/doc/${pkgname}/html"
+ ln -sfvr "${pkgdir}/${ANT_HOME}/manual" "${pkgdir}/usr/share/doc/${pkgname}/html"
ln -sfvr "${pkgdir}/${ANT_HOME}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
ln -sfvr "${pkgdir}/${ANT_HOME}/NOTICE" "${pkgdir}/usr/share/licenses/${pkgname}/NOTICE"
}