blob: 105dcb3b5ec8f17048ac3f93cae48e6155e44fdb (
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.2
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="62cfd4feab1fbdf3c6ce5267a5f79162bbdc4fbda985e4dde8dbdf04d549e95c98eb399620d049a871c640d5e5e6cb354de30fb4f175b80215f71e8ae92c2795 procs-0.9.2.tar.gz"
|