summaryrefslogtreecommitdiff
path: root/procs/Pkgfile
blob: b2c6547adb1e65eb7389268136873547fa5a606e (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.13.3
    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   [[ ! -e $PKGMK_SOURCE_DIR/rust ]] && mkdir $PKGMK_SOURCE_DIR/rust
   14   export CARGO_HOME=$PKGMK_SOURCE_DIR/rust
   15 
   16   cargo build --release --manifest-path $name-$version/Cargo.toml
   17 
   18   prt-get isinst bash-completion && $PKG/usr/bin/procs --completion bash && \
   19     install -Dm644 $SRC/procs.bash \
   20     $PKG/usr/share/bash-completion/completions/procs
   21   prt-get isinst zsh && $PKG/usr/bin/procs --completion zsh && \
   22     install -Dm644 $SRC/_procs $PKG/usr/share/zsh/site-functions/_procs
   23 
   24   install -Dt $PKG/usr/bin $name-$version/target/release/$name
   25 }

Generated by cgit