Skip to content

Commit

Permalink
fix(main/libucontext): auto update
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin WIlliams <[email protected]>
  • Loading branch information
2096779623 committed Aug 15, 2024
1 parent e8ca5ea commit 3a40bd0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/libucontext/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 3a40bd0

Please sign in to comment.