2015-06-13 01:03:31 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=http://developer.android.com/tools/help/index.html
|
2020-01-18 09:50:48 +01:00
|
|
|
TERMUX_PKG_DESCRIPTION="Command which takes in Java class files and converts them to format executable by Dalvik VM"
|
2019-01-21 15:00:12 +01:00
|
|
|
TERMUX_PKG_LICENSE="Apache-2.0"
|
2020-01-18 09:50:48 +01:00
|
|
|
TERMUX_PKG_VERSION=1:1.16
|
2020-01-18 09:55:28 +01:00
|
|
|
TERMUX_PKG_REVISION=1
|
|
|
|
TERMUX_PKG_SRCURL=https://dl.bintray.com/xeffyr/sources/dx/dx-android-${TERMUX_PKG_VERSION:2}.jar
|
2020-01-18 09:50:48 +01:00
|
|
|
TERMUX_PKG_SHA256=b9b7917267876b74c8ff6707e7a576c93b6dfe8cacc4f1cc791d606bcbbb7bd5
|
2019-08-14 13:27:16 +02:00
|
|
|
TERMUX_PKG_SKIP_SRC_EXTRACT=true
|
2015-06-13 01:03:31 +02:00
|
|
|
TERMUX_PKG_PLATFORM_INDEPENDENT=true
|
|
|
|
|
2019-02-08 10:37:29 +01:00
|
|
|
termux_step_make_install() {
|
2020-01-18 09:50:48 +01:00
|
|
|
termux_download "$TERMUX_PKG_SRCURL" \
|
|
|
|
"$TERMUX_PKG_CACHEDIR/dx-${TERMUX_PKG_VERSION:2}.jar" \
|
|
|
|
"$TERMUX_PKG_SHA256"
|
2017-11-17 02:06:11 +01:00
|
|
|
|
2020-01-18 09:50:48 +01:00
|
|
|
install -Dm600 "$TERMUX_PKG_CACHEDIR/dx-${TERMUX_PKG_VERSION:2}.jar" \
|
|
|
|
"$TERMUX_PREFIX"/share/dex/dx.jar
|
2015-06-13 01:03:31 +02:00
|
|
|
|
2020-01-18 09:50:48 +01:00
|
|
|
cat <<- EOF > "$TERMUX_PREFIX"/bin/dx
|
|
|
|
#!${TERMUX_PREFIX}/bin/sh
|
|
|
|
exec dalvikvm \
|
|
|
|
-Xmx256m \
|
|
|
|
-cp ${TERMUX_PREFIX}/share/dex/dx.jar \
|
|
|
|
dx.dx.command.Main "\$@"
|
|
|
|
EOF
|
|
|
|
chmod 700 "$TERMUX_PREFIX"/bin/dx
|
2018-07-26 12:21:43 +02:00
|
|
|
|
2020-01-18 09:50:48 +01:00
|
|
|
cat <<- EOF > "$TERMUX_PREFIX"/bin/dx-merge
|
|
|
|
#!${TERMUX_PREFIX}/bin/sh
|
|
|
|
exec dalvikvm \
|
|
|
|
-Xmx256m \
|
|
|
|
-cp ${TERMUX_PREFIX}/share/dex/dx.jar \
|
|
|
|
dx.dx.merge.DexMerger "\$@"
|
|
|
|
EOF
|
|
|
|
chmod 700 "$TERMUX_PREFIX"/bin/dx-merge
|
2015-06-13 01:03:31 +02:00
|
|
|
}
|