Files
termux-packages/packages/ipmitool/build.sh
termux-pacman-bot c5670e2f20 chore(tree-wide): adapt usage of termux_error_exit to unified version
%ci:no-build
[no version check]
2025-10-13 00:50:09 +00:00

20 lines
843 B
Bash

TERMUX_PKG_HOMEPAGE=https://github.com/ipmitool/ipmitool
TERMUX_PKG_DESCRIPTION="Command-line interface to IPMI-enabled devices"
TERMUX_PKG_LICENSE="BSD 3-Clause"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=1.8.19
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://github.com/ipmitool/ipmitool/archive/refs/tags/IPMITOOL_${TERMUX_PKG_VERSION//./_}.tar.gz
TERMUX_PKG_SHA256=48b010e7bcdf93e4e4b6e43c53c7f60aa6873d574cbd45a8d86fa7aaeebaff9c
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 "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})"
}