2023-09-28 10:39:27 +00:00

37 lines
999 B
Plaintext

# Contributor: Adam Jensen <adam@acj.sh>
# Maintainer: Adam Jensen <adam@acj.sh>
pkgname=rbspy
pkgver=0.17.1
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 cargo-auditable"
checkdepends="ruby"
options="net"
source="$pkgname-$pkgver.tar.gz::https://github.com/rbspy/rbspy/archive/v$pkgver.tar.gz"
build() {
cargo auditable 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="
277b5f696fca910fe894557aa599a2d292ea45437ad9ae3d1632f55571082f16606dee21fa22b45e6d09bbc65c75ab6ee6af0db4d641a8d8cbc62b0461e48156 rbspy-0.17.1.tar.gz
"