contrib/procs/Pkgfile

26 lines
890 B
Plaintext
Raw Normal View History

2021-05-23 16:06:44 +02:00
# Description: ps written in rust
# URL: https://github.com/dalance/procs
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: rust
name=procs
2023-03-10 16:55:29 +01:00
version=0.14.0
2021-05-23 16:06:44 +02:00
release=1
source=(https://github.com/dalance/procs/archive/v$version/$name-$version.tar.gz)
build() {
prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
2022-05-26 23:10:40 +02:00
[[ ! -e $PKGMK_SOURCE_DIR/rust ]] && mkdir $PKGMK_SOURCE_DIR/rust
export CARGO_HOME=$PKGMK_SOURCE_DIR/rust
2021-05-23 16:06:44 +02:00
2022-05-26 23:10:40 +02:00
cargo build --release --manifest-path $name-$version/Cargo.toml
2021-05-23 16:06:44 +02:00
prt-get isinst bash-completion && $PKG/usr/bin/procs --completion bash && \
install -Dm644 $SRC/procs.bash \
2022-05-26 23:10:40 +02:00
$PKG/usr/share/bash-completion/completions/procs
2021-05-23 16:06:44 +02:00
prt-get isinst zsh && $PKG/usr/bin/procs --completion zsh && \
2022-05-26 23:10:40 +02:00
install -Dm644 $SRC/_procs $PKG/usr/share/zsh/site-functions/_procs
install -Dt $PKG/usr/bin $name-$version/target/release/$name
2021-05-23 16:06:44 +02:00
}