diff --git a/packages/termux-tools/build.sh b/packages/termux-tools/build.sh index 0639e7419..d4616217e 100644 --- a/packages/termux-tools/build.sh +++ b/packages/termux-tools/build.sh @@ -1,11 +1,11 @@ TERMUX_PKG_HOMEPAGE=http://termux.com/ TERMUX_PKG_DESCRIPTION="Some tools for Termux" -TERMUX_PKG_VERSION=0.6 +TERMUX_PKG_VERSION=0.7 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 $TERMUX_PKG_BUILDER_DIR/{am,termux-fix-shebang,termux-reload-style,chsh,termux-open-url} $TERMUX_PREFIX/bin/ + cp $TERMUX_PKG_BUILDER_DIR/{am,pm,termux-fix-shebang,termux-reload-style,chsh,termux-open-url} $TERMUX_PREFIX/bin/ sed -i "s%\@TERMUX_PREFIX\@%${TERMUX_PREFIX}%g" $TERMUX_PREFIX/bin/termux-fix-shebang } diff --git a/packages/termux-tools/pm b/packages/termux-tools/pm new file mode 100755 index 000000000..138df1127 --- /dev/null +++ b/packages/termux-tools/pm @@ -0,0 +1,6 @@ +#!@TERMUX_PREFIX@/bin/sh + +# Remove LD_LIBRARY_PATH from environment to avoid conflicting +# with system libraries that pm may link against. + +LD_LIBRARY_PATH= /system/bin/pm $@