vim: Update from 8.0.0704 to 8.0.0738
[termux-packages] / packages / vim / build.sh
CommitLineData
26da93a4 1TERMUX_PKG_DESCRIPTION="Vi IMproved - enhanced vi editor"
59f0d218
FF
2TERMUX_PKG_HOMEPAGE=http://www.vim.org/
3TERMUX_PKG_DEPENDS="ncurses, vim-runtime"
4
3abd6cf4 5# Vim 8.0 patches described at ftp://ftp.vim.org/pub/vim/patches/8.0/README
f024c067
FF
6TERMUX_PKG_VERSION=8.0.0738
7TERMUX_PKG_SHA256=30a3675a374bfc0f1f37a366aa6fb24e0aabec29935d70878258325c6cd0b8ec
2ac441db
FF
8TERMUX_PKG_SRCURL="https://github.com/vim/vim/archive/v${TERMUX_PKG_VERSION}.tar.gz"
9TERMUX_PKG_FOLDERNAME=vim-${TERMUX_PKG_VERSION}
b712b92a
FF
10TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
11vim_cv_getcwd_broken=no
12vim_cv_memmove_handles_overlap=yes
13vim_cv_stat_ignores_slash=no
14vim_cv_terminfo=yes
15vim_cv_tgent=zero
16vim_cv_toupper_broken=no
17vim_cv_tty_group=world
18--enable-gui=no
19--enable-multibyte
20--with-features=huge
21--without-x
22--with-tlib=ncursesw
23"
59f0d218 24TERMUX_PKG_BUILD_IN_SRC="yes"
b712b92a
FF
25TERMUX_PKG_RM_AFTER_INSTALL="
26bin/rview
27bin/rvim
28bin/ex
29share/man/man1/evim.1
30share/icons
31share/vim/vim80/spell/en.ascii*
32share/vim/vim80/print
33share/vim/vim80/tools
34"
85afba20 35TERMUX_PKG_CONFFILES="share/vim/vimrc"
2b63e3c2 36
26da93a4 37TERMUX_PKG_CONFLICTS="vim-python"
59f0d218 38
59f0d218
FF
39termux_step_pre_configure () {
40 make distclean
41
42 # Remove eventually existing symlinks from previous builds so that they get re-created
43 for b in rview rvim ex view vimdiff; do rm -f $TERMUX_PREFIX/bin/$b; done
44 rm -f $TERMUX_PREFIX/share/man/man1/view.1
45}
46
47termux_step_post_make_install () {
48 cp $TERMUX_PKG_BUILDER_DIR/vimrc $TERMUX_PREFIX/share/vim/vimrc
49
d59c53cf 50 # Remove most tutor files:
3abd6cf4
FF
51 cp $TERMUX_PREFIX/share/vim/vim80/tutor/{tutor,tutor.vim,tutor.utf-8} $TERMUX_PKG_TMPDIR/
52 rm -f $TERMUX_PREFIX/share/vim/vim80/tutor/*
53 cp $TERMUX_PKG_TMPDIR/{tutor,tutor.vim,tutor.utf-8} $TERMUX_PREFIX/share/vim/vim80/tutor/
216acc06
FF
54
55 cd $TERMUX_PREFIX/bin
56 ln -f -s vim vi
59f0d218 57}