[source]
tar = "https://github.com/vim/vim/archive/refs/tags/v9.1.0821.tar.gz"
blake3 = "d1f5802ceb047b09143f1764bf4016f084cf7e6c026c7047919264c9f262a5dd"
patches = ["vim.patch"]

[build]
dependencies = ["ncursesw"]
template = "custom"
script = """
DYNAMIC_INIT
rsync -av --delete "${COOKBOOK_SOURCE}/" ./

export vim_cv_toupper_broken=no
export vim_cv_tgetent=zero
export vim_cv_terminfo=yes
export vim_cv_tty_group=world
export vim_cv_getcwd_broken=no
export vim_cv_stat_ignores_slash=yes
export vim_cv_memmove_handles_overlap=yes

COOKBOOK_CONFIGURE="./configure"
COOKBOOK_CONFIGURE_FLAGS+=(
    --with-tlib=ncursesw
)
cookbook_configure
"""
