mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-09 12:47:05 +02:00
36 lines
1,002 B
Text
36 lines
1,002 B
Text
# Contributor: Adam Jensen <adam@acj.sh>
|
|
# Maintainer: Adam Jensen <adam@acj.sh>
|
|
pkgname=rbspy
|
|
pkgver=0.34.0
|
|
pkgrel=0
|
|
pkgdesc="Sampling profiler for Ruby"
|
|
url="https://rbspy.github.io/"
|
|
arch="all !armhf !armv7 !ppc64le !s390x !x86" # 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="
|
|
6ab70c0e10856fd65f7b2b981cc681670cf4a6bd05069cf826ccf21614ff267d8320d0ec04eed92db613d7c995f776a059e538ac45ca1d8ea77ff27346aee9e1 rbspy-0.34.0.tar.gz
|
|
"
|