diff --git a/packages/gumbo-parser/build.sh b/packages/gumbo-parser/build.sh index ca314a95e7..641040b56a 100644 --- a/packages/gumbo-parser/build.sh +++ b/packages/gumbo-parser/build.sh @@ -7,6 +7,18 @@ TERMUX_PKG_SRCURL=https://github.com/google/gumbo-parser/archive/v$TERMUX_PKG_VE TERMUX_PKG_SHA256=28463053d44a5dfbc4b77bcf49c8cee119338ffa636cc17fc3378421d714efad TERMUX_PKG_AUTO_UPDATE=true +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 e=$(sed -En 's/^libgumbo_la_LDFLAGS\s*=.*\s+-version-info\s+([0-9]+):([0-9]+):([0-9]+).*/\1-\3/p' \ + Makefile.am) + if [ ! "${e}" ] || [ "${_SOVERSION}" != "$(( "${e}" ))" ]; then + termux_error_exit "SOVERSION guard check failed." + fi +} + termux_step_pre_configure() { ./autogen.sh }