diff --git a/root-packages/fio/build.sh b/root-packages/fio/build.sh index b30eb217e10b7b0..39425980ada781e 100644 --- a/root-packages/fio/build.sh +++ b/root-packages/fio/build.sh @@ -9,6 +9,16 @@ TERMUX_PKG_DEPENDS="openssl, libandroid-shmem, libaio" TERMUX_PKG_SUGGESTS="python" TERMUX_PKG_BUILD_IN_SRC=true TERMUX_PKG_AUTO_UPDATE=true +TERMUX_PKG_UPDATE_VERSION_REGEXP="\d+\.\d+" + +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 +} termux_step_pre_configure() { sed -i "s/@VERSION@/${TERMUX_PKG_VERSION}/g" $TERMUX_PKG_SRCDIR/Makefile