mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 23:38:28 +08:00
apache-ant: add ant binary to PATH
This commit is contained in:
parent
993fc0978d
commit
903367fe8d
@ -9,7 +9,7 @@ source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
||||
|
||||
pkgname=apache-ant
|
||||
pkgver=1.8.2
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="A java-based build tool."
|
||||
arch=('i686' 'x86_64')
|
||||
license=('APACHE')
|
||||
@ -42,6 +42,10 @@ package() {
|
||||
# symlink to junit so it's on the javac build path for ant
|
||||
ln -sf /usr/share/java/junit.jar "${pkgdir}"/usr/share/java/apache-ant/lib/
|
||||
|
||||
# symlink the binary into PATH
|
||||
mkdir -p "${pkgdir}"/usr/bin
|
||||
ln -sf "${pkgdir}"/usr/share/java/apache-ant/bin/ant "${pkgdir}"/usr/bin/ant
|
||||
|
||||
# fix python2 path
|
||||
sed -i 's|/usr/bin/python|/usr/bin/python2|' "${pkgdir}"/usr/share/java/apache-ant/bin/runant.py
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user