libwebsockets: Add SOVERSION guard

%ci:no-build
This commit is contained in:
Tee KOBAYASHI 2022-12-30 01:43:59 +09:00 committed by xtkoba
parent 928d169857
commit 38cf96c42c
1 changed files with 12 additions and 0 deletions

View File

@ -18,3 +18,15 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
TERMUX_PKG_RM_AFTER_INSTALL="lib/pkgconfig/libwebsockets_static.pc"
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_UPDATE_TAG_TYPE="newest-tag"
termux_step_post_get_source() {
# Do not forget to bump revision of reverse dependencies and rebuild them
# after SOVERSION is changed.
local _SOVERSION=19
local v=$(sed -En 's/^set\(SOVERSION\s+"?([0-9]+).*/\1/p' \
CMakeLists.txt)
if [ "${v}" != "${_SOVERSION}" ]; then
termux_error_exit "SOVERSION guard check failed."
fi
}