termux-packages/packages/dx/build.sh
Fredrik Fornwall 6501186f2b Fix dalvikvm wrapper
- Just unset LD_LIBRARY_PATH in the dalvikvm wrapper.
- Let the dalvikvm wrapper setup $ANDROID_DATA.
- Avoid using a custom dalvikvm wrapper in dx.
2016-05-05 19:55:13 -04:00

17 lines
685 B
Bash
Executable File

TERMUX_PKG_HOMEPAGE=http://developer.android.com/tools/help/index.html
TERMUX_PKG_DESCRIPTION="Command which takes in class files and reformulates them for usage on Android"
TERMUX_PKG_VERSION=$TERMUX_ANDROID_BUILD_TOOLS_VERSION
TERMUX_PKG_BUILD_REVISION=1
TERMUX_PKG_PLATFORM_INDEPENDENT=true
termux_step_make_install () {
mkdir -p $TERMUX_PREFIX/share/dex
$TERMUX_DX \
--dex \
--output=$TERMUX_PREFIX/share/dex/dx.jar \
$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
}