contrib/procs/Pkgfile

28 lines
994 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
2024-03-07 21:04:03 +01:00
version=0.14.5
2023-10-06 14:46:52 +02:00
release=1
2021-05-23 16:06:44 +02:00
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
2023-09-30 14:57:10 +02:00
prt-get isinst bash-completion && $name-$version/target/release/$name \
--gen-completion-out bash >> $SRC/procs.bash && \
2021-05-23 16:06:44 +02:00
install -Dm644 $SRC/procs.bash \
2022-05-26 23:10:40 +02:00
$PKG/usr/share/bash-completion/completions/procs
2023-09-30 14:57:10 +02:00
prt-get isinst zsh && $name-$version/target/release/$name \
--gen-completion-out zsh >> $SRC/_procs.zsh && \
install -Dm644 $SRC/_procs.zsh $PKG/usr/share/zsh/site-functions/_procs
2022-05-26 23:10:40 +02:00
install -Dt $PKG/usr/bin $name-$version/target/release/$name
2021-05-23 16:06:44 +02:00
}