libzopfli: Add SOVERSION guard

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

View File

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