aboutsummaryrefslogtreecommitdiffstats
path: root/testing/procs/APKBUILD
blob: c0b70f290a46ef7d70f916b7ebf612328e7e3b92 (plain) (blame)
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
# Contributor: Chloe Kudryavtsev <toast@toastin.space>
# Maintainer: Chloe Kudryavtsev <toast@toastin.space>
pkgname=procs
pkgver=0.8.11
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" # test_run test_run_insert and test_run_tree fail
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="bdbb69b25ae34e1f218ae3e8d9785c07fc752ec81e4d97ada8f5103199e19671fa87eafc40bd48c773797ee86d0506a8cc7d0689e399b1586487b4b39e964096  procs-0.8.11.tar.gz"