1 TERMUX_PKG_HOMEPAGE
=https
://termux.com
/
2 TERMUX_PKG_DESCRIPTION
="Basic system tools for Termux"
3 TERMUX_PKG_VERSION
=0.35
4 TERMUX_PKG_PLATFORM_INDEPENDENT
=yes
6 termux_step_make_install
() {
7 # Remove LD_LIBRARY_PATH from environment to avoid conflicting
8 # with system libraries that system binaries may link against:
9 for tool
in am df getprop logcat
ping ping6 ip pm settings
; do
10 WRAPPER_FILE
=$TERMUX_PREFIX/bin
/$tool
11 echo '#!/bin/sh' > $WRAPPER_FILE
12 echo 'unset LD_LIBRARY_PATH' >> $WRAPPER_FILE
13 # Some tools require having /system/bin/app_process in the PATH,
14 # at least am&pm on a Nexus 6p running Android 6.0:
15 echo -n
'PATH=$PATH:/system/bin ' >> $WRAPPER_FILE
16 echo "exec /system/bin/$tool \"\$@\"" >> $WRAPPER_FILE
17 chmod +x
$TERMUX_PREFIX/bin
/$tool
20 cp -p
$TERMUX_PKG_BUILDER_DIR/{dalvikvm
,su
,termux-fix-shebang
,termux-reload-settings
,termux-setup-storage
,chsh
,termux-open-url
,termux-wake-lock
,termux-wake-unlock
} $TERMUX_PREFIX/bin
/
21 perl
-p
-i
-e
"s%\@TERMUX_PREFIX\@%${TERMUX_PREFIX}%g" $TERMUX_PREFIX/bin
/dalvikvm