# Template file for 'bpftrace'
pkgname=bpftrace
version=0.21.2
revision=2
_llvmver=18
archs="x86_64* aarch64* ppc64*"
build_style=cmake
configure_args="-DBUILD_TESTING=OFF" # needs root to run
hostmakedepends="flex pkg-config ruby-asciidoctor"
makedepends="bcc-devel cereal clang${_llvmver} clang-tools-extra${_llvmver}
 elfutils-devel libbpf-devel libxml2-devel llvm${_llvmver}-devel"
short_desc="High-level tracing language for Linux enhanced Berkeley Packet Filter"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="Apache-2.0"
homepage="https://github.com/iovisor/bpftrace/"
distfiles="https://github.com/iovisor/bpftrace/archive/v${version}.tar.gz"
checksum=7c2cb089da6e6074574edc164cf9242e06843e66c493304a9d2739258e6a1459
nostrip=yes  # needs to read own symbol table
