mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-02-14 13:50:56 +00:00
- Fixes https://github.com/termux/termux-packages/issues/25027 - JDK 21 has been released for a year, so theoretically, all packages should be ready now, but it will be necessary to test each package's basic functionality with `openjdk-21` installed, to make sure that they are compatible. - Now that https://github.com/termux/termux-packages/pull/25214 has been merged, it should be easier for termux-apt users whose `java` command is set to `openjdk-17`, to get it automatically updated to `openjdk-21` without necessarily having to uninstall `openjdk-17`.
24 lines
903 B
Bash
24 lines
903 B
Bash
TERMUX_PKG_HOMEPAGE=https://github.com/pxb1988/dex2jar
|
|
TERMUX_PKG_DESCRIPTION="Tools to work with android .dex and java .class files"
|
|
TERMUX_PKG_LICENSE="Apache-2.0"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION="2.4"
|
|
TERMUX_PKG_REVISION=1
|
|
TERMUX_PKG_SRCURL=https://github.com/pxb1988/dex2jar/releases/download/v${TERMUX_PKG_VERSION}/dex-tools-v${TERMUX_PKG_VERSION}.zip
|
|
TERMUX_PKG_SHA256=ee7c45eb3c1d2474a6145d8d447e651a736a22d9664b6d3d3be5a5a817dda23a
|
|
TERMUX_PKG_DEPENDS="openjdk-21"
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
TERMUX_PKG_PLATFORM_INDEPENDENT=true
|
|
|
|
termux_step_make_install() {
|
|
rm -rf ./bin/*.bat
|
|
rm -rf ./*.bat
|
|
mkdir -p $TERMUX_PREFIX/opt/dex2jar
|
|
cp -r ./* $TERMUX_PREFIX/opt/dex2jar
|
|
ln -sfr $TERMUX_PREFIX/opt/dex2jar/bin/dex-tools $TERMUX_PREFIX/bin/d2j-run
|
|
cd $TERMUX_PREFIX/opt/dex2jar/
|
|
for i in *.sh; do
|
|
ln -sfr $TERMUX_PREFIX/opt/dex2jar/$i $TERMUX_PREFIX/bin/${i%%.sh}
|
|
done
|
|
}
|