# Contributor: Chloe Kudryavtsev # Maintainer: Chloe Kudryavtsev pkgname=procs pkgver=0.8.12 pkgrel=0 pkgdesc="A modern replacement for ps written in Rust" url="https://github.com/dalance/procs" arch="x86_64 armv7 armhf !aarch64 x86 ppc64le" # limited by rust/cargo (aarch64 due to MAP_32BIT in nix package) arch="$arch !armhf !armv7 !x86" # test_run test_run_insert and test_run_tree fail, x86 fails to build license="MIT" options="net" makedepends="cargo" source="$pkgname-$pkgver.tar.gz::https://github.com/dalance/procs/archive/v$pkgver.tar.gz" # disable stack protector on x86 due linking error in cc package case "$CARCH" in x86) export CFLAGS="$CFLAGS -fno-stack-protector" ;; esac export CARGO_HOME="$srcdir"/cargo build() { cargo build \ --release \ --verbose } check() { cargo test --all \ --release \ --verbose } package() { install -Dm755 target/release/"$pkgname" "$pkgdir"/usr/bin/"$pkgname" } sha512sums="2103b6129bce51cda99d0896a32199a6ddae9714582d9241dc5bc7915fb2c383ae2d16b9f3486117ab61bd01fcf810af723ded5ae4a7ced7b00484cc4c7b2bc1 procs-0.8.12.tar.gz"