libexif: Add SOVERSION guard

%ci:no-build
This commit is contained in:
Tee KOBAYASHI 2022-12-27 22:56:26 +09:00 committed by xtkoba
parent 25e07806c2
commit 0cae2fc7c1
1 changed files with 16 additions and 0 deletions

View File

@ -10,6 +10,22 @@ TERMUX_PKG_UPDATE_VERSION_REGEXP="\d+.\d+.\d+"
TERMUX_PKG_BREAKS="libexif-dev"
TERMUX_PKG_REPLACES="libexif-dev"
termux_step_post_get_source() {
# Do not forget to bump revision of reverse dependencies and rebuild them
# after SOVERSION is changed.
local _SOVERSION=12
local a
for a in LIBEXIF_CURRENT LIBEXIF_AGE; do
local _${a}=$(sed -En 's/^'"${a}"'=([0-9]+).*/\1/p' \
configure.ac)
done
local v=$(( _LIBEXIF_CURRENT - _LIBEXIF_AGE ))
if [ "${v}" != "${_SOVERSION}" ]; then
termux_error_exit "SOVERSION guard check failed."
fi
}
termux_step_pre_configure() {
autoreconf -fi
}