2015-06-13 01:03:31 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=http://ant.apache.org/
|
|
|
|
TERMUX_PKG_DESCRIPTION="Java based build tool like make"
|
2021-08-27 12:06:16 +02:00
|
|
|
TERMUX_PKG_VERSION=1.10.11
|
2015-06-13 01:03:31 +02:00
|
|
|
TERMUX_PKG_SRCURL=http://apache.mirrors.spacedump.net//ant/binaries/apache-ant-${TERMUX_PKG_VERSION}-bin.tar.bz2
|
2021-08-27 12:06:16 +02:00
|
|
|
TERMUX_PKG_SHA256=ffc6c9eb2d153db76e18df70fa145744ddd0d754339df5a797a47603cfeaa8a6
|
|
|
|
TERMUX_PKG_LICENSE="Apache-2.0"
|
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
|
|
TERMUX_PKG_RECOMMENDS="openjdk-17"
|
2015-06-13 01:03:31 +02:00
|
|
|
TERMUX_PKG_PLATFORM_INDEPENDENT=true
|
2021-08-27 12:06:16 +02:00
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
2015-06-13 01:03:31 +02:00
|
|
|
|
2019-02-08 10:37:29 +01:00
|
|
|
termux_step_make_install() {
|
2019-02-12 09:23:21 +01:00
|
|
|
mkdir -p $TERMUX_PREFIX/share/ant/lib
|
2015-06-13 01:03:31 +02:00
|
|
|
|
2019-02-12 09:23:21 +01:00
|
|
|
for jar in ant ant-launcher; do
|
2021-08-27 12:06:16 +02:00
|
|
|
$TERMUX_D8 \
|
|
|
|
--classpath $ANDROID_HOME/platforms/android-$TERMUX_PKG_API_LEVEL/android.jar \
|
|
|
|
--release \
|
|
|
|
--min-api $TERMUX_PKG_API_LEVEL \
|
|
|
|
--output $TERMUX_PREFIX/share/ant/lib/${jar}.jar \
|
2019-02-12 09:23:21 +01:00
|
|
|
lib/${jar}.jar
|
|
|
|
done
|
2015-06-13 01:03:31 +02:00
|
|
|
|
|
|
|
install $TERMUX_PKG_BUILDER_DIR/ant $TERMUX_PREFIX/bin/ant
|
|
|
|
perl -p -i -e "s%\@TERMUX_PREFIX\@%${TERMUX_PREFIX}%g" $TERMUX_PREFIX/bin/ant
|
|
|
|
}
|