mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-07-04 02:28:45 +08:00
23 lines
454 B
TOML
23 lines
454 B
TOML
#TODO: common libc functions such as getsid
|
|
#TODO: only watch is working
|
|
[source]
|
|
git = "https://github.com/uutils/procps"
|
|
shallow_clone = true
|
|
[build]
|
|
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
|
|
"""
|
|
|