espeak: Add SOVERSION guard

This commit is contained in:
Tee KOBAYASHI 2022-12-30 04:11:23 +09:00 committed by xtkoba
parent cb9f8560fc
commit 03c84a22a1
1 changed files with 10 additions and 0 deletions

View File

@ -21,6 +21,16 @@ termux_step_post_get_source() {
termux_error_exit "Package '${TERMUX_PKG_NAME}' is not safe for on-device builds."
fi
# Do not forget to bump revision of reverse dependencies and rebuild them
# after SOVERSION is changed.
local _SOVERSION=1
local e=$(sed -En 's/^SHARED_VERSION="?([0-9]+):([0-9]+):([0-9]+).*/\1-\3/p' \
Makefile.am)
if [ ! "${e}" ] || [ "${_SOVERSION}" != "$(( "${e}" ))" ]; then
termux_error_exit "SOVERSION guard check failed."
fi
./autogen.sh
}