void-packages/srcpkgs/bpftrace/template

26 lines
888 B
Bash

# Template file for 'bpftrace'
pkgname=bpftrace
version=0.16.0
revision=1
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 clang-tools-extra elfutils-devel libbpf-devel libxml2-devel llvm"
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=89456dee3a20ec6c21ece345d4bf9a16a06af0f63cc5dffa9f5c7eea7916e21d
nostrip=yes # needs to read own symbol table
post_extract() {
vsed -i -e 's:<linux/btf.h>:<bpf/linux/btf.h>:g' src/btf.cpp
}
post_install() {
# clashes with bcc-tools
rm -rf ${DESTDIR}/usr/share/man
}