diff --git a/packages/libarchive/build.sh b/packages/libarchive/build.sh index 17ae2ccf33..73b45113f6 100644 --- a/packages/libarchive/build.sh +++ b/packages/libarchive/build.sh @@ -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//' \