mirror of
https://github.com/termux/termux-packages.git
synced 2024-12-04 18:45:52 +00:00
011496399a
This commit has been automatically submitted by Github Actions.
35 lines
1.5 KiB
Bash
35 lines
1.5 KiB
Bash
TERMUX_PKG_HOMEPAGE=https://github.com/dalance/procs
|
|
TERMUX_PKG_DESCRIPTION="A modern replacement for ps"
|
|
TERMUX_PKG_LICENSE="MIT"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION="0.14.8"
|
|
TERMUX_PKG_SRCURL=https://github.com/dalance/procs/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
|
|
TERMUX_PKG_SHA256=b9cf37275bdf1c03786a035c1cd495a93cbf94406eb8c261825d1fd59dcfd61d
|
|
TERMUX_PKG_BUILD_DEPENDS="asciidoctor"
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
|
|
# This package contains makefiles to run the tests. So, we need to override build steps.
|
|
termux_step_make() {
|
|
termux_setup_rust
|
|
cargo build --jobs $TERMUX_PKG_MAKE_PROCESSES --target $CARGO_TARGET_NAME --release
|
|
asciidoctor -b manpage man/procs.1.adoc
|
|
}
|
|
|
|
termux_step_make_install() {
|
|
install -Dm700 -t $TERMUX_PREFIX/bin target/${CARGO_TARGET_NAME}/release/procs
|
|
install -Dm644 man/procs.1 "$TERMUX_PREFIX"/share/man/man1/procs.1
|
|
install -Dm644 /dev/null "$TERMUX_PREFIX"/share/bash-completion/completions/procs
|
|
install -Dm644 /dev/null "$TERMUX_PREFIX"/share/zsh/site-functions/_procs
|
|
install -Dm644 /dev/null "$TERMUX_PREFIX"/share/fish/vendor_completions.d/procs.fish
|
|
}
|
|
|
|
termux_step_create_debscripts() {
|
|
cat <<-EOF >./postinst
|
|
#!${TERMUX_PREFIX}/bin/sh
|
|
procs --gen-completion-out bash > ${TERMUX_PREFIX}/share/bash-completion/completions/procs
|
|
procs --gen-completion-out zsh > ${TERMUX_PREFIX}/share/zsh/site-functions/_procs
|
|
procs --gen-completion-out fish > ${TERMUX_PREFIX}/share/fish/vendor_completions.d/procs.fish
|
|
EOF
|
|
}
|