blob: 3f4ec82556b706dca67dd91ae8e7c6811f52a95f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Contributor: Chloe Kudryavtsev <toast@toastin.space>
# Maintainer: Chloe Kudryavtsev <toast@toastin.space>
pkgname=procs
pkgver=0.9.6
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 \
--locked
}
check() {
cargo test --all \
--release \
--verbose \
--locked
}
package() {
install -Dm755 target/release/"$pkgname" "$pkgdir"/usr/bin/"$pkgname"
}
sha512sums="7d1c72df6799512d9f242d0d69242d09bca9d9cbd06fd78c050ea4d7a97e2cd1b83d0581961d83345cefbeb371b972ac124eb55df0cfd8ccbbdd94f8620e15ae procs-0.9.6.tar.gz"
|