mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2025-12-27 14:10:32 +00:00
vim{,-python,-gtk}: Add version guard
%ci:no-build
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user