pcaudiolib: Add SOVERSION guard

%ci:no-build
This commit is contained in:
Tee KOBAYASHI 2022-12-30 04:07:29 +09:00 committed by xtkoba
parent 32a12bb5a7
commit cb9f8560fc
1 changed files with 16 additions and 0 deletions

View File

@ -10,6 +10,22 @@ TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_DEPENDS="pulseaudio"
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=0
local a
for a in CURRENT AGE; do
local _LT_${a}=$(sed -En 's/^'"${a}"'=([0-9]+).*/\1/p' \
Makefile.am)
done
local v=$(( _LT_CURRENT - _LT_AGE ))
if [ ! "${_LT_CURRENT}" ] || [ "${v}" != "${_SOVERSION}" ]; then
termux_error_exit "SOVERSION guard check failed."
fi
}
termux_step_pre_configure() {
./autogen.sh
}