chore(main/ipmitool): enable automatic updates [no ci]

This commit is contained in:
termux-pacman-bot
2023-10-11 06:32:56 +00:00
parent c599b9980b
commit f08af336f2

View File

@@ -10,3 +10,9 @@ TERMUX_PKG_DEPENDS="openssl, readline"
termux_step_pre_configure() {
sh bootstrap
}
termux_pkg_auto_update() {
local latest_tag="$(termux_github_api_get_tag "${TERMUX_PKG_SRCURL}")"
[[ -z "${latest_tag}" ]] && termux_error_exit "ERROR: Unable to get tag from ${TERMUX_PKG_SRCURL}"
termux_pkg_upgrade_version "$(sed -n 's/^IPMITOOL_\([0-9]\+\)_\([0-9]\+\)_\([0-9]\+\)$/\1.\2.\3/p' <<< ${latest_tag})"
}