# Maintainer: Adam Jensen pkgname=bcc pkgver=0.10.0 pkgrel=0 pkgdesc="A toolkit for creating efficient kernel tracing and manipulation programs" url="https://github.com/iovisor/bcc/" arch="aarch64 x86 x86_64" license="Apache-2.0" # bcc's test suite requires privileged access to run BPF programs options="!check" depends="python" _llvmver=8 makedepends="tar git llvm${_llvmver}-dev llvm${_llvmver}-static clang-dev clang-static cmake flex-dev bison luajit-dev build-base iperf linux-headers elfutils-dev zlib-dev libbpf-dev" source="$pkgname-$pkgver.tar.gz::https://github.com/iovisor/$pkgname/archive/v$pkgver.tar.gz 10-use-system-libbpf.patch" prepare() { rm -rf tests/* && touch tests/CMakeLists.txt rm -rf examples/* && touch examples/CMakeLists.txt default_prepare } build() { mkdir -p "$builddir/build" cd "$builddir/build" cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_INSTALL_LIBDIR=/usr/lib .. make } package() { cd "$builddir/build" make install DESTDIR="$pkgdir" } sha512sums="92ba0f57d22af610ac81661526fed8bec80d502bcbc8aa5048ba7c50911247c020832db23afdcf9b555b142cd387c228cf7baa0ddc94067165403e362227f235 bcc-0.10.0.tar.gz e2f0cc063a13e2d5ad57db364e29c064f2c351b82bbd4013d613614adab3b9f4aa555ac71e06189807d32211fdef5c9520b4bc5df2db5de3db02123503d242a8 10-use-system-libbpf.patch"