chiark / gitweb /
Remove TERMUX_JACK and TERMUX_JILL
authorFredrik Fornwall <fredrik@fornwall.net>
Fri, 11 Aug 2017 12:21:05 +0000 (14:21 +0200)
committerFredrik Fornwall <fredrik@fornwall.net>
Fri, 11 Aug 2017 12:21:05 +0000 (14:21 +0200)
build-package.sh
packages/dx/build.sh

index 53287d5a07439ba5614c39136c393ca32ea72667..9018f069f940d371b6ba0227834b4ebe0356c94b 100755 (executable)
@@ -280,8 +280,6 @@ termux_step_setup_variables() {
        # to avoid stuff like arm-linux-androideabi-ld there to conflict with ones from
        # the standalone toolchain.
        TERMUX_DX=$ANDROID_HOME/build-tools/$TERMUX_ANDROID_BUILD_TOOLS_VERSION/dx
-       TERMUX_JACK=$ANDROID_HOME/build-tools/$TERMUX_ANDROID_BUILD_TOOLS_VERSION/jack.jar
-       TERMUX_JILL=$ANDROID_HOME/build-tools/$TERMUX_ANDROID_BUILD_TOOLS_VERSION/jill.jar
 
        TERMUX_COMMON_CACHEDIR="$TERMUX_TOPDIR/_cache"
        TERMUX_DEBDIR="$TERMUX_SCRIPTDIR/debs"
index 10771d9a6669029cdf49bccc8af8fafb19bb3c73..d39d13ddd26e019c3e62d0e06c686119195c8603 100755 (executable)
@@ -4,15 +4,10 @@ TERMUX_PKG_VERSION=$TERMUX_ANDROID_BUILD_TOOLS_VERSION
 TERMUX_PKG_PLATFORM_INDEPENDENT=true
 
 termux_step_make_install () {
-       # As of build tools 24 the dx tool is implemented using java 8, but
-       # as dx itself does not support java 8 (class file format 52)
-       # we use jack:
-       java -jar $TERMUX_JACK \
-               --output-dex $TERMUX_PKG_TMPDIR \
-               --import $ANDROID_HOME/build-tools/${TERMUX_PKG_VERSION}/lib/dx.jar
-
        mkdir -p $TERMUX_PREFIX/share/dex
-       mv $TERMUX_PKG_TMPDIR/classes.dex $TERMUX_PREFIX/share/dex/dx.dex
+       $TERMUX_DX --dex \
+               --output $TERMUX_PREFIX/share/dex/dx.dex \
+               $ANDROID_HOME/build-tools/${TERMUX_PKG_VERSION}/lib/dx.jar
 
        install $TERMUX_PKG_BUILDER_DIR/dx $TERMUX_PREFIX/bin/dx
        perl -p -i -e "s%\@TERMUX_PREFIX\@%${TERMUX_PREFIX}%g" $TERMUX_PREFIX/bin/dx