aboutsummaryrefslogtreecommitdiffstats
path: root/testing/procs/APKBUILD
blob: 24d6b534cf35af92800898d15534e4a3cefd5e3c (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
# Contributor: Chloe Kudryavtsev <toast@toastin.space>
# Maintainer: Chloe Kudryavtsev <toast@toastin.space>
pkgname=procs
pkgver=0.9.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"

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="dfd9f76d01b535497cf96c43675d9d810c4714a690938a4b67b5dce4416ddd6b380cf2854c9a3a2580f78e1f6ba7973699400fe09a522acf7ab076c312e35546  procs-0.9.12.tar.gz"