1 TERMUX_PKG_HOMEPAGE
=https
://termux.com
/
2 TERMUX_PKG_DESCRIPTION
="Basic system tools for Termux"
3 TERMUX_PKG_VERSION
=0.43
4 TERMUX_PKG_PLATFORM_INDEPENDENT
=yes
5 TERMUX_PKG_CONFFILES
="etc/motd"
7 termux_step_make_install
() {
8 # Remove LD_LIBRARY_PATH from environment to avoid conflicting
9 # with system libraries that system binaries may link against:
10 for tool
in am df getprop logcat
ping ping6 ip pm settings
; do
11 WRAPPER_FILE
=$TERMUX_PREFIX/bin
/$tool
12 echo '#!/bin/sh' > $WRAPPER_FILE
13 echo 'unset LD_LIBRARY_PATH' >> $WRAPPER_FILE
14 # Some tools require having /system/bin/app_process in the PATH,
15 # at least am&pm on a Nexus 6p running Android 6.0:
16 echo -n
'PATH=$PATH:/system/bin ' >> $WRAPPER_FILE
17 echo "exec /system/bin/$tool \"\$@\"" >> $WRAPPER_FILE
18 chmod +x
$TERMUX_PREFIX/bin
/$tool
21 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
,login
,pkg
,termux-open
,termux-info
} $TERMUX_PREFIX/bin
/
22 perl
-p
-i
-e
"s%\@TERMUX_PREFIX\@%${TERMUX_PREFIX}%g" $TERMUX_PREFIX/bin
/dalvikvm
24 cp $TERMUX_PKG_BUILDER_DIR/motd
$TERMUX_PREFIX/etc
/motd
26 ln -s
-f termux-open xdg-open