Port watch from uutils

This commit is contained in:
Wildan M 2026-05-01 10:43:43 +07:00
parent a5dbf2ba24
commit 65c57b3fba
No known key found for this signature in database
GPG Key ID: 01AC53185C679C79
2 changed files with 19 additions and 2 deletions

View File

@ -210,6 +210,7 @@ tokei = {}
ttf-hack = {}
userutils = {}
uutils = {}
uutils-procps = {}
vim = {}
vttest = {}
wayland-rs = {}

View File

@ -1,6 +1,22 @@
#TODO not compiled or tested
#TODO: common libc functions such as getsid
#TODO: only watch is working
[source]
git = "https://github.com/uutils/procps"
shallow_clone = true
[build]
template = "cargo"
template = "custom"
script = """
DYNAMIC_INIT
# TODO: more features support?
CARGO_PROFILE_RELEASE_LTO=thin cookbook_cargo --no-default-features --features pmap,slabtop,sysctl,tload,vmstat,watch
BINS=(
watch
)
for bin in "${BINS[@]}"
do
ln -sv procps "${COOKBOOK_STAGE}/usr/bin/$bin"
done
"""