diff --git a/packages/libaom/build.sh b/packages/libaom/build.sh index 9933e8d47a..9ef486caa5 100644 --- a/packages/libaom/build.sh +++ b/packages/libaom/build.sh @@ -22,7 +22,7 @@ termux_step_pre_configure() { CMakeLists.txt) done local v=$(( _LT_CURRENT - _LT_AGE )) - if [ "${v}" != "${_SOVERSION}" ]; then + if [ ! "${_LT_CURRENT}" ] || [ "${v}" != "${_SOVERSION}" ]; then termux_error_exit "SOVERSION guard check failed." fi } diff --git a/packages/libass/build.sh b/packages/libass/build.sh index 2e41e0d9cc..ef29a8d73e 100644 --- a/packages/libass/build.sh +++ b/packages/libass/build.sh @@ -23,7 +23,7 @@ termux_step_post_get_source() { libass/Makefile_library.am) done local v=$(( _LT_CURRENT - _LT_AGE )) - if [ "${v}" != "${_SOVERSION}" ]; then + if [ ! "${_LT_CURRENT}" ] || [ "${v}" != "${_SOVERSION}" ]; then termux_error_exit "SOVERSION guard check failed." fi } diff --git a/packages/libcurl/build.sh b/packages/libcurl/build.sh index 03263539d3..892169c6b8 100644 --- a/packages/libcurl/build.sh +++ b/packages/libcurl/build.sh @@ -42,7 +42,7 @@ termux_step_post_get_source() { lib/Makefile.soname) done local v=$(( _VERSIONCHANGE - _VERSIONDEL )) - if [ "${v}" != "${_SOVERSION}" ]; then + if [ ! "${_VERSIONCHANGE}" ] || [ "${v}" != "${_SOVERSION}" ]; then termux_error_exit "SOVERSION guard check failed." fi } diff --git a/packages/libevent/build.sh b/packages/libevent/build.sh index 9887de89fd..d5fb4c7e39 100644 --- a/packages/libevent/build.sh +++ b/packages/libevent/build.sh @@ -37,7 +37,8 @@ termux_step_post_get_source() { local r=$(sed -En 's/.*set\(EVENT_PACKAGE_RELEASE\s+([0-9.]+)\).*/\1/p' \ CMakeLists.txt) local v=$(( _LIBVERSION_CURRENT - _LIBVERSION_AGE )) - if [ "${_RELEASE}" != "${r}" ] || [ "${_SOVERSION}" != "${v}" ]; then + if [ "${_RELEASE}" != "${r}" ] || \ + [ ! "${_LIBVERSION_CURRENT}" ] || [ "${_SOVERSION}" != "${v}" ]; then termux_error_exit "SOVERSION guard check failed." fi } diff --git a/packages/libexif/build.sh b/packages/libexif/build.sh index cf551121a5..0350e436c8 100644 --- a/packages/libexif/build.sh +++ b/packages/libexif/build.sh @@ -21,7 +21,7 @@ termux_step_post_get_source() { configure.ac) done local v=$(( _LIBEXIF_CURRENT - _LIBEXIF_AGE )) - if [ "${v}" != "${_SOVERSION}" ]; then + if [ ! "${_LIBEXIF_CURRENT}" ] || [ "${v}" != "${_SOVERSION}" ]; then termux_error_exit "SOVERSION guard check failed." fi } diff --git a/packages/libexpat/build.sh b/packages/libexpat/build.sh index ffef21df6b..c824b8f75a 100644 --- a/packages/libexpat/build.sh +++ b/packages/libexpat/build.sh @@ -21,7 +21,7 @@ termux_step_post_get_source() { local _${a}=$(sed -En 's/^'"${a}"'=([0-9]+).*/\1/p' configure.ac) done local v=$(( _LIBCURRENT - _LIBAGE )) - if [ "${v}" != "${_SOVERSION}" ]; then + if [ ! "${_LIBCURRENT}" ] || [ "${v}" != "${_SOVERSION}" ]; then termux_error_exit "SOVERSION guard check failed." fi } diff --git a/packages/libnghttp2/build.sh b/packages/libnghttp2/build.sh index 404462efb7..16ef8ec433 100644 --- a/packages/libnghttp2/build.sh +++ b/packages/libnghttp2/build.sh @@ -23,7 +23,7 @@ termux_step_post_get_source() { configure.ac) done local v=$(( _LT_CURRENT - _LT_AGE )) - if [ "${v}" != "${_SOVERSION}" ]; then + if [ ! "${_LT_CURRENT}" ] || [ "${v}" != "${_SOVERSION}" ]; then termux_error_exit "SOVERSION guard check failed." fi } diff --git a/packages/libprotobuf-c/build.sh b/packages/libprotobuf-c/build.sh index d7f3d3ef42..ff8f1bbdc4 100644 --- a/packages/libprotobuf-c/build.sh +++ b/packages/libprotobuf-c/build.sh @@ -22,7 +22,7 @@ termux_step_post_get_source() { Makefile.am) done local v=$(( _LT_CURRENT - _LT_AGE )) - if [ "${v}" != "${_SOVERSION}" ]; then + if [ ! "${_LT_CURRENT}" ] || [ "${v}" != "${_SOVERSION}" ]; then termux_error_exit "SOVERSION guard check failed." fi } diff --git a/packages/libsndfile/build.sh b/packages/libsndfile/build.sh index 4a38e0a94a..211969f0f4 100644 --- a/packages/libsndfile/build.sh +++ b/packages/libsndfile/build.sh @@ -29,7 +29,7 @@ termux_step_post_get_source() { configure.ac) done local v=$(( _LT_CURRENT - _LT_AGE )) - if [ "${v}" != "${_SOVERSION}" ]; then + if [ ! "${_LT_CURRENT}" ] || [ "${v}" != "${_SOVERSION}" ]; then termux_error_exit "SOVERSION guard check failed." fi }