Fredrik Fornwall
9 years ago
2 changed files with 14 additions and 2 deletions
@ -1,11 +1,11 @@ |
|||||
TERMUX_PKG_HOMEPAGE=http://termux.com/ |
TERMUX_PKG_HOMEPAGE=http://termux.com/ |
||||
TERMUX_PKG_DESCRIPTION="Some tools for Termux" |
TERMUX_PKG_DESCRIPTION="Some tools for Termux" |
||||
TERMUX_PKG_VERSION=0.13 |
TERMUX_PKG_VERSION=0.14 |
||||
|
|
||||
termux_step_make_install () { |
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 |
$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,pm,termux-fix-shebang,termux-reload-settings,chsh,termux-open-url} $TERMUX_PREFIX/bin/ |
cp $TERMUX_PKG_BUILDER_DIR/{am,pm,termux-fix-shebang,termux-reload-settings,termux-setup-storage,chsh,termux-open-url} $TERMUX_PREFIX/bin/ |
||||
|
|
||||
sed -i "s%\@TERMUX_PREFIX\@%${TERMUX_PREFIX}%g" $TERMUX_PREFIX/bin/termux-fix-shebang |
sed -i "s%\@TERMUX_PREFIX\@%${TERMUX_PREFIX}%g" $TERMUX_PREFIX/bin/termux-fix-shebang |
||||
} |
} |
||||
|
@ -0,0 +1,12 @@ |
|||||
|
#!/data/data/com.termux/files/usr/bin/sh |
||||
|
|
||||
|
if [ "$#" != "0" ]; then |
||||
|
echo 'usage: termux-setup-storage' |
||||
|
echo 'Use without arguments to ensure storage permission granted' |
||||
|
echo 'and symlinks to storage available in $HOME/.storage' |
||||
|
exit |
||||
|
fi |
||||
|
|
||||
|
LD_LIBRARY_PATH= am broadcast --user 0 \ |
||||
|
--es com.termux.app.reload_style storage \ |
||||
|
-a com.termux.app.reload_style com.termux > /dev/null |
Loading…
Reference in new issue