1 # Maintainer: Orhun Parmaksız <orhun@archlinux.org>
2 # Maintainer: Caleb Maclennan <caleb@alerque.com>
3 # Contributor: Filipe Nascimento <flipee at tuta dot io>
4 # Contributor: Attenuation <ouyangjun1999@gmail.com>
9 pkgdesc="A modern replacement for ps written in Rust"
11 url="https://github.com/dalance/procs"
15 source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
16 sha256sums=('fa5af0951dc8aa63c0590f8c5c1136594866057704cfb1cdfc22ac3cc49437c6')
20 cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
25 cargo build --release --frozen
27 "target/release/$pkgname" --gen-completion zsh
28 "target/release/$pkgname" --gen-completion bash
29 "target/release/$pkgname" --gen-completion fish
39 install -Dm 755 "target/release/$pkgname" -t "$pkgdir/usr/bin"
40 install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
41 install -Dm 644 "_$pkgname" -t "$pkgdir/usr/share/zsh/site-functions"
42 install -Dm 644 "$pkgname.bash" "$pkgdir/usr/share/bash-completion/completions/$pkgname"
43 install -Dm 644 "$pkgname.fish" -t "$pkgdir/usr/share/fish/vendor_completions.d"