fix Termux hardcoded directories in vim, vim-python

This commit is contained in:
Leonid Pliushch 2020-10-30 22:43:00 +02:00
parent c41e10605a
commit a878e2b206
4 changed files with 6 additions and 4 deletions

View File

@ -66,7 +66,8 @@ termux_step_pre_configure() {
} }
termux_step_post_make_install() { termux_step_post_make_install() {
cp $TERMUX_PKG_BUILDER_DIR/vimrc $TERMUX_PREFIX/share/vim/vimrc sed -e "s%\@TERMUX_PREFIX\@%${TERMUX_PREFIX}%g" $TERMUX_PKG_BUILDER_DIR/vimrc \
> $TERMUX_PREFIX/share/vim/vimrc
# Remove most tutor files: # Remove most tutor files:
cp $TERMUX_PREFIX/share/vim/vim82/tutor/{tutor,tutor.vim,tutor.utf-8} $TERMUX_PKG_TMPDIR/ cp $TERMUX_PREFIX/share/vim/vim82/tutor/{tutor,tutor.vim,tutor.utf-8} $TERMUX_PKG_TMPDIR/

View File

@ -77,7 +77,7 @@ if has('path_extra')
endif endif
if &shell =~# 'fish$' && (v:version < 704 || v:version == 704 && !has('patch276')) if &shell =~# 'fish$' && (v:version < 704 || v:version == 704 && !has('patch276'))
set shell=/data/data/com.termux/files/usr/bin/env\ bash set shell=@TERMUX_PREFIX@/bin/env\ bash
endif endif
set autoread set autoread

View File

@ -52,7 +52,8 @@ termux_step_pre_configure() {
} }
termux_step_post_make_install() { termux_step_post_make_install() {
cp $TERMUX_PKG_BUILDER_DIR/vimrc $TERMUX_PREFIX/share/vim/vimrc sed -e "s%\@TERMUX_PREFIX\@%${TERMUX_PREFIX}%g" $TERMUX_PKG_BUILDER_DIR/vimrc \
> $TERMUX_PREFIX/share/vim/vimrc
# Remove most tutor files: # Remove most tutor files:
cp $TERMUX_PREFIX/share/vim/vim82/tutor/{tutor,tutor.vim,tutor.utf-8} $TERMUX_PKG_TMPDIR/ cp $TERMUX_PREFIX/share/vim/vim82/tutor/{tutor,tutor.vim,tutor.utf-8} $TERMUX_PKG_TMPDIR/

View File

@ -77,7 +77,7 @@ if has('path_extra')
endif endif
if &shell =~# 'fish$' && (v:version < 704 || v:version == 704 && !has('patch276')) if &shell =~# 'fish$' && (v:version < 704 || v:version == 704 && !has('patch276'))
set shell=/data/data/com.termux/files/usr/bin/env\ bash set shell=@TERMUX_PREFIX@/bin/env\ bash
endif endif
set autoread set autoread