libarchive: Add SOVERSION guard

%ci:no-build
This commit is contained in:
termux-pacman-bot
2022-12-27 14:30:50 +00:00
parent eb1e10e2a4
commit eec89db8f9

View File

@@ -20,6 +20,18 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
--disable-xattr
"
termux_step_post_get_source() {
# Do not forget to bump revision of reverse dependencies and rebuild them
# after SOVERSION is changed.
local _SOVERSION=13
local v=$(sed -En 's/^ARCHIVE_INTERFACE=`echo \$\(\(([0-9]+).*/\1/p' \
configure.ac)
if [ "${v}" != "${_SOVERSION}" ]; then
termux_error_exit "SOVERSION guard check failed."
fi
}
termux_step_post_make_install() {
# https://github.com/libarchive/libarchive/issues/1766
sed -i '/^Requires\.private:/s/ iconv//' \