blob: 15c0e216fd23497756b7e123fc6294aa058e1e27 (
plain)
1 # Description: ps written in rust
2 # URL: https://github.com/dalance/procs
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Depends on: rust
5
6 name=procs
7 version=0.11.9
8 release=1
9 source=(https://github.com/dalance/procs/archive/v$version/$name-$version.tar.gz)
10
11 build() {
12 prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
13 mkdir "$PKGMK_SOURCE_DIR/rust" || true
14 export CARGO_HOME="$PKGMK_SOURCE_DIR/rust"
15
16 cargo update --manifest-path $name-$version/Cargo.toml
17 cargo build --release --locked --manifest-path $name-$version/Cargo.toml
18
19 install -Dt $PKG/usr/bin $name-$version/target/release/$name
20
21 prt-get isinst bash-completion && $PKG/usr/bin/procs --completion bash && \
22 install -Dm644 $SRC/procs.bash \
23 $PKG/usr/share/bash-completion/completions/procs || true
24 prt-get isinst zsh && $PKG/usr/bin/procs --completion zsh && \
25 install -Dm644 $SRC/_procs $PKG/usr/share/zsh/site-functions/_procs || \
26 true
27 }
|