aports/community/bpftop/APKBUILD

43 lines
869 B
Text

# Contributor: fossdd <fossdd@pwned.life>
# Maintainer: fossdd <fossdd@pwned.life>
pkgname=bpftop
pkgver=0.6.0
pkgrel=0
pkgdesc="Dynamic real-time view of running eBPF programs"
url="https://github.com/Netflix/bpftop"
arch="all"
license="Apache-2.0"
depends="
libgcc
zlib
"
makedepends="
cargo-auditable
git
linux-headers
elfutils-dev
clang
"
source="$pkgname-$pkgver.tar.gz::https://github.com/Netflix/bpftop/archive/refs/tags/v$pkgver.tar.gz"
prepare() {
default_prepare
cargo fetch --target="$CTARGET" --locked
}
build() {
cargo auditable build --frozen --release
}
check() {
cargo test --frozen --release
}
package() {
install -Dm755 target/release/bpftop -t "$pkgdir"/usr/bin/
}
sha512sums="
f915fc8e49e0a2508b36ff885b8d6f276d2ce8593ea6d1b8caaa0b4189e1bfc2d2c28e0cee6a0e818c4618c7054452d9cd131af8ac58f3a0eddcfc86d8347fdb bpftop-0.6.0.tar.gz
"