2022-02-05 14:23:32 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
# Copyright (C) 2016-present Team LibreELEC (https://libreelec.tv)
|
2023-05-09 19:21:47 +00:00
|
|
|
# Copyright (C) 2023-present Fewtarius
|
2022-02-05 14:23:32 +00:00
|
|
|
|
|
|
|
PKG_NAME="vim"
|
2023-08-24 09:53:35 +00:00
|
|
|
PKG_VERSION="9.0.1778"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_LICENSE="VIM"
|
|
|
|
PKG_SITE="http://www.vim.org/"
|
|
|
|
PKG_URL="https://github.com/vim/vim/archive/v${PKG_VERSION}.tar.gz"
|
|
|
|
PKG_DEPENDS_TARGET="toolchain ncurses"
|
|
|
|
PKG_LONGDESC="Vim is a highly configurable text editor built to enable efficient text editing."
|
|
|
|
PKG_BUILD_FLAGS="-sysroot"
|
|
|
|
|
|
|
|
PKG_CONFIGURE_OPTS_TARGET="vim_cv_getcwd_broken=no \
|
|
|
|
vim_cv_memmove_handles_overlap=yes \
|
|
|
|
vim_cv_stat_ignores_slash=yes \
|
|
|
|
vim_cv_terminfo=yes \
|
|
|
|
vim_cv_tgetent=zero \
|
|
|
|
vim_cv_toupper_broken=no \
|
|
|
|
vim_cv_tty_group=world \
|
|
|
|
vim_cv_tty_mode=0620 \
|
|
|
|
ac_cv_sizeof_int=4 \
|
|
|
|
ac_cv_small_wchar_t=no \
|
|
|
|
--datarootdir=/storage/.config/vim \
|
|
|
|
--disable-canberra \
|
|
|
|
--disable-nls \
|
|
|
|
--enable-selinux=no \
|
|
|
|
--enable-gui=no \
|
|
|
|
--with-features=huge \
|
|
|
|
--with-tlib=tinfo \
|
|
|
|
--without-x"
|
|
|
|
|
|
|
|
PKG_MAKEINSTALL_OPTS_TARGET=VIMRTDIR=
|
|
|
|
|
|
|
|
pre_configure_target() {
|
|
|
|
cd ..
|
|
|
|
rm -rf .${TARGET_NAME}
|
|
|
|
}
|
|
|
|
|
|
|
|
make_target() {
|
|
|
|
:
|
|
|
|
}
|
|
|
|
|
|
|
|
pre_makeinstall_target() {
|
|
|
|
mkdir -p ${INSTALL}/usr/bin
|
|
|
|
mkdir -p ${INSTALL}/usr/config/vim
|
|
|
|
}
|
|
|
|
|
|
|
|
post_makeinstall_target() {
|
|
|
|
(
|
|
|
|
mv ${INSTALL}/storage/.config/vim/vim/vimrc_example.vim ${INSTALL}/usr/config/vim/vimrc
|
2023-08-22 19:17:40 +00:00
|
|
|
mv ${INSTALL}/storage/.config/vim/vim/defaults.vim ${INSTALL}/usr/config/vim/defaults.vim
|
2022-02-05 14:23:32 +00:00
|
|
|
rm -r ${INSTALL}/storage/
|
|
|
|
)
|
|
|
|
}
|