aboutsummaryrefslogtreecommitdiffstats
path: root/community/rbspy/APKBUILD
blob: 9a8dafd8e9cea00f066c7153fb98b9fcdf35f10d (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.1
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="
1644d930e204321e817dcaf753dac91e3db184fbbbbbdabf044e0f05a73a596a473e0f83caacbbac1f07ad5d77d8849734223b8799200540864bb7d6e1c898b7  rbspy-0.8.1.tar.gz
"