diff --git a/packages/libucontext/build.sh b/packages/libucontext/build.sh index e155d34ba6a339c..af0193523c601f3 100644 --- a/packages/libucontext/build.sh +++ b/packages/libucontext/build.sh @@ -7,4 +7,14 @@ TERMUX_PKG_SRCURL=https://github.com/kaniini/libucontext/archive/refs/tags/libuc TERMUX_PKG_SHA256=937fba9d0beebd7cf957b79979b19fe3a29bb9c4bfd25e869477d7154bbf8fd3 TERMUX_PKG_AUTO_UPDATE=true TERMUX_PKG_UPDATE_TAG_TYPE="newest-tag" +TERMUX_PKG_UPDATE_VERSION_REGEXP="\d+\.\d+" TERMUX_PKG_EXTRA_MAKE_ARGS="ARCH=$TERMUX_ARCH" + +termux_pkg_auto_update() { + local tag="$(termux_github_api_get_tag "${TERMUX_PKG_SRCURL}" "${TERMUX_PKG_UPDATE_TAG_TYPE}")" + if grep -qP "^lxml-${TERMUX_PKG_UPDATE_VERSION_REGEXP}\$" <<<"$tag"; then + termux_pkg_upgrade_version "$tag" + else + echo "WARNING: Skipping auto-update: Not stable release($tag)" + fi +}