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

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

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

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

sha512sums="
50c98e3417ec586df5ae91813fd568ec9b0492061e4d5f10d670dfad594d1748c26bc7f00e207a82d7c41fb8e548aba7c6d719e4cc576aba6cb6c3f38a8158fa  rbspy-0.8.0.tar.gz
"