packages/apktool

This commit is contained in:
termux-actions[bot]
2021-12-25 20:22:12 +00:00
parent 89b6249a66
commit a622f1badf
2 changed files with 14 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
--- a/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/AndrolibResources.java
+++ b/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/AndrolibResources.java
@@ -611,7 +611,7 @@
throws AndrolibException {
String aaptPath = apkOptions.aaptPath;
- boolean customAapt = !aaptPath.isEmpty();
+ boolean customAapt = true;
List<String> cmd = new ArrayList<>();
try {

View File

@@ -3,8 +3,10 @@ TERMUX_PKG_DESCRIPTION="A tool for reverse engineering 3rd party, closed, binary
TERMUX_PKG_LICENSE="Apache-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=2.6.0
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://github.com/iBotPeaches/Apktool/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=74739cdb1434ca35ec34e51ca7272ad3f378ae3ed0a2d5805d9a2fab5016037f
# aapt2 is not available (yet)
TERMUX_PKG_DEPENDS="aapt, openjdk-17"
TERMUX_PKG_BUILD_IN_SRC=true
@@ -17,6 +19,7 @@ termux_step_pre_configure() {
$CC $CFLAGS $CPPFLAGS aapt-wrapper/${exe_name}-wrapper.c \
-o ${exe_path} $LDFLAGS
$STRIP --strip-unneeded ${exe_path}
$TERMUX_ELF_CLEANER ${exe_path}
cp -a ${exe_path} ${exe_path}_64
done
}