libgit2: Add SOVERSION guard

%ci:no-build
This commit is contained in:
Tee KOBAYASHI 2022-12-28 02:18:51 +09:00 committed by xtkoba
parent a1853ec843
commit 36893ed5f1
1 changed files with 11 additions and 0 deletions

View File

@ -17,6 +17,17 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
-DREGEX_BACKEND=pcre
"
termux_step_post_get_source() {
# Do not forget to bump revision of reverse dependencies and rebuild them
# after SOVERSION is changed.
local _SOVERSION=1.5
local v=$(echo ${TERMUX_PKG_VERSION#*:} | cut -d . -f 1-2)
if [ "${v}" != "${_SOVERSION}" ]; then
termux_error_exit "SOVERSION guard check failed."
fi
}
termux_step_pre_configure() {
find "$TERMUX_PKG_SRCDIR" -name CMakeLists.txt | xargs -n 1 \
sed -i 's/\( PROPERTIES C_STANDARD\) 90/\1 99/g'