aboutsummaryrefslogtreecommitdiffstats
path: root/community/rbspy/APKBUILD
blob: a6d6f8c9d26e2f3b460acb5e3635135368fc3d47 (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
# Contributor: Adam Jensen <adam@acj.sh>
# Maintainer: Adam Jensen <adam@acj.sh>
pkgname=rbspy
pkgver=0.16.0
pkgrel=0
pkgdesc="Sampling profiler for Ruby"
url="https://rbspy.github.io/"
arch="all !armv7 !ppc64le !s390x !riscv64" # limited by cargo and build errors
license="MIT"
makedepends="cargo"
checkdepends="ruby"
options="net"
source="$pkgname-$pkgver.tar.gz::https://github.com/rbspy/rbspy/archive/v$pkgver.tar.gz"

export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"

build() {
	cargo build --release --locked
}

check() {
	# Some tests need additional privileges
	cargo test --release --locked -- \
		--skip sampler::tests \
		--skip test_current_thread_address \
		--skip test_initialize_with_disallowed_process \
		--skip test_get_exec_trace \
		--skip test_get_trace
}

package() {
	install -Dm755 "target/release/rbspy" "$pkgdir/usr/bin/rbspy"
}

sha512sums="
ed91ed6f7edc7490d6b9985dcdc357265c367b14f63cd993ccfb27bc78b8adcb2040d2868c5429bee09dd885e3f0b87e768db394f1e928d6e0ef2da9058f007f  rbspy-0.16.0.tar.gz
"