utf8proc: Add SOVERSION guard

%ci:no-build
This commit is contained in:
Tee KOBAYASHI 2022-12-28 01:54:06 +09:00 committed by xtkoba
parent 6a5cf54263
commit 997b11e875
1 changed files with 11 additions and 0 deletions

View File

@ -10,6 +10,17 @@ TERMUX_PKG_BREAKS="utf8proc-dev"
TERMUX_PKG_REPLACES="utf8proc-dev"
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_post_get_source() {
# Do not forget to bump revision of reverse dependencies and rebuild them
# after SOVERSION is changed.
local _SOVERSION=2
local v=$(sed -En 's/^MAJOR=([0-9]+).*/\1/p' Makefile)
if [ "${v}" != "${_SOVERSION}" ]; then
termux_error_exit "SOVERSION guard check failed."
fi
}
termux_step_pre_configure() {
rm $TERMUX_PKG_SRCDIR/CMakeLists.txt
}