octomap: Add SOVERSION guard

%ci:no-build
This commit is contained in:
Tee KOBAYASHI 2022-12-30 02:58:07 +09:00 committed by xtkoba
parent b0285e3852
commit 5623191a84
1 changed files with 11 additions and 0 deletions

View File

@ -18,3 +18,14 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
-DBUILD_DYNAMICETD3D_SUBPROJECT=ON
-DOCTOVIS_QT5=OFF
"
termux_step_post_get_source() {
# Do not forget to bump revision of reverse dependencies and rebuild them
# after SOVERSION is changed.
local _SOVERSION=1.9
local v=$(echo ${TERMUX_PKG_VERSION#*:} | cut -d . -f 1-2)
if [ "${v}" != "${_SOVERSION}" ]; then
termux_error_exit "SOVERSION guard check failed."
fi
}