vim{,-python,-gtk}: Add version guard

%ci:no-build
This commit is contained in:
Tee KOBAYASHI 2023-01-04 12:35:25 +09:00 committed by xtkoba
parent b905425498
commit d8e7edd27c
3 changed files with 24 additions and 0 deletions

View File

@ -61,6 +61,14 @@ termux_step_pre_configure() {
termux_error_exit "Package '$TERMUX_PKG_NAME' is not safe for on-device builds."
fi
# Version guard
local ver_v=$(. $TERMUX_SCRIPTDIR/packages/vim/build.sh; echo ${TERMUX_PKG_VERSION#*:})
local ver_p=$(. $TERMUX_SCRIPTDIR/packages/vim-python/build.sh; echo ${TERMUX_PKG_VERSION#*:})
local ver_g=$(. $TERMUX_SCRIPTDIR/x11-packages/vim-gtk/build.sh; echo ${TERMUX_PKG_VERSION#*:})
if [ "${ver_v}" != "${ver_p}" ] || [ "${ver_p}" != "${ver_g}" ]; then
termux_error_exit "Version mismatch between vim, vim-python and vim-gtk."
fi
make distclean
# Remove eventually existing symlinks from previous builds so that they get re-created

View File

@ -46,6 +46,14 @@ termux_step_pre_configure() {
termux_error_exit "Package '$TERMUX_PKG_NAME' is not safe for on-device builds."
fi
# Version guard
local ver_v=$(. $TERMUX_SCRIPTDIR/packages/vim/build.sh; echo ${TERMUX_PKG_VERSION#*:})
local ver_p=$(. $TERMUX_SCRIPTDIR/packages/vim-python/build.sh; echo ${TERMUX_PKG_VERSION#*:})
local ver_g=$(. $TERMUX_SCRIPTDIR/x11-packages/vim-gtk/build.sh; echo ${TERMUX_PKG_VERSION#*:})
if [ "${ver_v}" != "${ver_p}" ] || [ "${ver_p}" != "${ver_g}" ]; then
termux_error_exit "Version mismatch between vim, vim-python and vim-gtk."
fi
make distclean
# Remove eventually existing symlinks from previous builds so that they get re-created

View File

@ -51,6 +51,14 @@ TERMUX_PKG_CONFFILES="share/vim/vimrc"
termux_step_pre_configure() {
LDFLAGS+=" -landroid-shmem"
# Version guard
local ver_v=$(. $TERMUX_SCRIPTDIR/packages/vim/build.sh; echo ${TERMUX_PKG_VERSION#*:})
local ver_p=$(. $TERMUX_SCRIPTDIR/packages/vim-python/build.sh; echo ${TERMUX_PKG_VERSION#*:})
local ver_g=$(. $TERMUX_SCRIPTDIR/x11-packages/vim-gtk/build.sh; echo ${TERMUX_PKG_VERSION#*:})
if [ "${ver_v}" != "${ver_p}" ] || [ "${ver_p}" != "${ver_g}" ]; then
termux_error_exit "Version mismatch between vim, vim-python and vim-gtk."
fi
make distclean
# Remove eventually existing symlinks from previous builds so that they get re-created.