termux-tools: Add dalvikvm wrapper

This commit is contained in:
Fredrik Fornwall 2016-03-21 21:34:26 -04:00
parent b54e054905
commit dcad05c5aa
6 changed files with 10 additions and 26 deletions

View File

@ -1,6 +0,0 @@
#!/bin/sh
# Remove LD_LIBRARY_PATH from environment to avoid conflicting
# with system libraries that am may link against.
LD_LIBRARY_PATH= exec /system/bin/am $@

View File

@ -1,9 +1,17 @@
TERMUX_PKG_HOMEPAGE=http://termux.com/
TERMUX_PKG_DESCRIPTION="Some tools for Termux"
TERMUX_PKG_VERSION=0.17
TERMUX_PKG_VERSION=0.18
termux_step_make_install () {
$CXX $CFLAGS $LDFLAGS -std=c++14 -Wall -Wextra -pedantic -Werror $TERMUX_PKG_BUILDER_DIR/*.cpp -o $TERMUX_PREFIX/bin/termux-elf-cleaner
cp -p $TERMUX_PKG_BUILDER_DIR/{am,pm,df,ping,logcat,termux-fix-shebang,termux-reload-settings,termux-setup-storage,chsh,termux-open-url} $TERMUX_PREFIX/bin/
# Remove LD_LIBRARY_PATH from environment to avoid conflicting
# with system libraries that am may link against.
for tool in am dalvikvm df logcat ping pm; do
echo '#!/bin/sh' > $TERMUX_PREFIX/bin/$tool
echo "LD_LIBRARY_PATH= exec /system/bin/$tool \$@" >> $TERMUX_PREFIX/bin/$tool
chmod +x $TERMUX_PREFIX/bin/$tool
done
cp -p $TERMUX_PKG_BUILDER_DIR/{termux-fix-shebang,termux-reload-settings,termux-setup-storage,chsh,termux-open-url} $TERMUX_PREFIX/bin/
}

View File

@ -1,6 +0,0 @@
#!/bin/sh
# Remove LD_LIBRARY_PATH from environment to avoid conflicting
# with system libraries that df may link against.
LD_LIBRARY_PATH= exec /system/bin/df $@

View File

@ -1,3 +0,0 @@
#!/bin/sh
LD_LIBRARY_PATH= exec /system/bin/logcat $@

View File

@ -1,3 +0,0 @@
#!/bin/sh
LD_LIBRARY_PATH= exec /system/bin/ping $@

View File

@ -1,6 +0,0 @@
#!/bin/sh
# Remove LD_LIBRARY_PATH from environment to avoid conflicting
# with system libraries that pm may link against.
LD_LIBRARY_PATH= exec /system/bin/pm $@