1 TERMUX_PKG_HOMEPAGE
=http
://www.vim.org
/
2 TERMUX_PKG_DESCRIPTION
="Vi IMproved - enhanced vi editor"
3 TERMUX_PKG_DEPENDS
="ncurses, vim-runtime, python"
4 # vim should only be updated every 50 releases on multiples of 50.
5 # Update both vim and vim-python to the same version in one PR.
6 TERMUX_PKG_VERSION
=8.0.1650
7 TERMUX_PKG_SHA256
=1802f79c224e0a2a7b8cb9b516b0daabc916357263dc87c490eee6e1491b5472
8 TERMUX_PKG_SRCURL
="https://github.com/vim/vim/archive/v${TERMUX_PKG_VERSION}.tar.gz"
9 TERMUX_PKG_EXTRA_CONFIGURE_ARGS
="
10 vim_cv_getcwd_broken=no
11 vim_cv_memmove_handles_overlap=yes
12 vim_cv_stat_ignores_slash=no
15 vim_cv_toupper_broken=no
16 vim_cv_tty_group=world
23 TERMUX_PKG_BUILD_IN_SRC
="yes"
24 TERMUX_PKG_RM_AFTER_INSTALL
="
30 share/vim/vim80/spell/en.ascii*
34 TERMUX_PKG_CONFFILES
="share/vim/vimrc"
37 TERMUX_PKG_CONFLICTS
="vim"
38 TERMUX_PKG_EXTRA_CONFIGURE_ARGS
+="
39 vi_cv_path_python3_pfx=$TERMUX_PREFIX
40 vi_cv_var_python3_version=3.6
41 --enable-python3interp
42 --with-python3-config-dir=$TERMUX_PREFIX/lib/python3.6/config-3.6m/
44 TERMUX_PKG_DESCRIPTION
+=" - with python support"
45 # Remove share/vim/vim80 which is in vim-runtime built as a subpackage of vim:
46 TERMUX_PKG_RM_AFTER_INSTALL
+=" share/vim/vim80"
47 termux_step_pre_configure
() {
48 CPPFLAGS
+=" -I${TERMUX_PREFIX}/include/python3.6m"
51 termux_step_pre_configure
() {
54 # Remove eventually existing symlinks from previous builds so that they get re-created
55 for b
in rview rvim ex view vimdiff
; do rm -f
$TERMUX_PREFIX/bin
/$b; done
56 rm -f
$TERMUX_PREFIX/share
/man
/man1
/view
.1
59 termux_step_post_make_install
() {
60 cp $TERMUX_PKG_BUILDER_DIR/vimrc
$TERMUX_PREFIX/share
/vim
/vimrc
62 # Remove most tutor files:
63 cp $TERMUX_PREFIX/share
/vim
/vim80
/tutor
/{tutor
,tutor.vim
,tutor.utf-8
} $TERMUX_PKG_TMPDIR/
64 rm -f
$TERMUX_PREFIX/share
/vim
/vim80
/tutor
/*
65 cp $TERMUX_PKG_TMPDIR/{tutor
,tutor.vim
,tutor.utf-8
} $TERMUX_PREFIX/share
/vim
/vim80
/tutor
/