Files
termux-packages/packages/hyperfine/build.sh
termux-pacman-bot 42a8b604b5 chore(tree-wide): declare termux_setup_rust dependency
Explicitly declare termux_setup_rust in build script after removal in
termux_step_make_install. This is done to quickly identify which
packages are Rust based.

%ci:no-build
2025-11-12 17:39:38 +00:00

31 lines
1.2 KiB
Bash

TERMUX_PKG_HOMEPAGE=https://github.com/sharkdp/hyperfine
TERMUX_PKG_DESCRIPTION="A command-line benchmarking tool"
TERMUX_PKG_LICENSE="Apache-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="1.19.0"
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://github.com/sharkdp/hyperfine/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=d1c782a54b9ebcdc1dedf8356a25ee11e11099a664a7d9413fdd3742138fa140
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_pre_configure() {
termux_setup_rust
}
termux_step_post_make_install() {
# Manpages.
install -Dm600 doc/"${TERMUX_PKG_NAME}".1 \
"${TERMUX_PREFIX}"/share/man/man1/"${TERMUX_PKG_NAME}".1
# Shell completions.
install -Dm600 target/"${CARGO_TARGET_NAME}"/release/build/"${TERMUX_PKG_NAME}"*/out/"${TERMUX_PKG_NAME}".bash \
"${TERMUX_PREFIX}"/share/bash-completion/completions/"${TERMUX_PKG_NAME}".bash
install -Dm600 target/"${CARGO_TARGET_NAME}"/release/build/"${TERMUX_PKG_NAME}"*/out/"${TERMUX_PKG_NAME}".fish \
"${TERMUX_PREFIX}"/share/fish/vendor_completions.d/"${TERMUX_PKG_NAME}".fish
install -Dm600 target/"${CARGO_TARGET_NAME}"/release/build/"${TERMUX_PKG_NAME}"*/out/_"${TERMUX_PKG_NAME}" \
"${TERMUX_PREFIX}"/share/zsh/site-functions/_"${TERMUX_PKG_NAME}"
}