Commit 3a1220ac authored by prspkt's avatar prspkt
Browse files

testing/procs: upgrade to 0.11.7

 - Install shell completions.
 - Patch release target to minimize size.
parent cc3d05b4
# Contributor: Chloe Kudryavtsev <toast@toast.cafe>
# Maintainer: Chloe Kudryavtsev <toast@toast.cafe>
pkgname=procs
pkgver=0.11.4
pkgver=0.11.7
pkgrel=0
pkgdesc="Modern replacement for ps written in Rust"
url="https://github.com/dalance/procs"
......@@ -9,26 +9,39 @@ arch="all !mips64 !s390x" # limited by rust/cargo
license="MIT"
options="net"
makedepends="cargo"
source="procs-$pkgver.tar.gz::https://github.com/dalance/procs/archive/v$pkgver.tar.gz"
subpackages="
$pkgname-bash-completion
$pkgname-fish-completion
$pkgname-zsh-completion
"
source="procs-$pkgver.tar.gz::https://github.com/dalance/procs/archive/v$pkgver.tar.gz
minimize-size.patch"
export CARGO_HOME="$srcdir"/cargo
build() {
cargo build \
--release \
--verbose \
--locked
cargo build --release --locked
# generate shell completions
target/release/procs --completion bash
target/release/procs --completion fish
target/release/procs --completion zsh
}
check() {
cargo test --all \
--release \
--verbose \
--locked
cargo test --release --locked
}
package() {
install -Dm755 target/release/"$pkgname" "$pkgdir"/usr/bin/"$pkgname"
install -Dm755 target/release/procs "$pkgdir"/usr/bin/procs
# install completions
install -Dm644 procs.bash "$pkgdir"/usr/share/bash-completion/completions/procs
install -Dm644 procs.fish "$pkgdir"/usr/share/fish/completions/procs.fish
install -Dm644 _procs "$pkgdir"/usr/share/zsh/site-functions/_procs
}
sha512sums="2fca3dfcb0a1c7dc174426150f5264615bb38c736e0df931a6c03eb2211d95c44b3601debd9781c08cabbda692e7263c6a48bf351fad7e1020f6c8e0e530e569 procs-0.11.4.tar.gz"
sha512sums="
ff460c8e14c3ead52c7c40828ac288224adbb90320978013bcccd0c90a0dcc48f9273a839e0fe86138d6fe465d460220187b24dc4bc8ba2acd8b33cd88a95c6f procs-0.11.7.tar.gz
8ea573db74ceb90e07945043735bf162062c4ab758531e2f8116933f50282b762748f420eb3f1b7263aeb591c94c0f95200bb4098c340efd69f8da3b0bc31b69 minimize-size.patch
"
Minimize size of the resulting binary: 4020 -> 2976 kiB
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -77,3 +77,5 @@
[profile.release]
lto = true
codegen-units = 1
+opt-level = "z"
+panic = "abort"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment