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

%ci:no-build
This commit is contained in:
termux-pacman-bot
2023-01-04 04:01:17 +00:00
parent 6dc56bea59
commit b0abfd9360
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