New package: libbpf-1.1.0

This commit is contained in:
Leah Neukirchen 2022-08-31 16:10:11 +02:00
parent 81d598c4f6
commit 1adc7dbdf6
3 changed files with 36 additions and 0 deletions

View File

@ -4219,3 +4219,4 @@ libvosk.so vosk-api-0.3.43_1
libdspy-1.so.1 d-spy-1.4.0_1
libpanel-1.so.1 libpanel-1.0.1_1
libqrtr.so.1 qrtr-ns-1.0_1
libbpf.so.1 libbpf-1.0.0_1

1
srcpkgs/libbpf-devel Symbolic link
View File

@ -0,0 +1 @@
libbpf

34
srcpkgs/libbpf/template Normal file
View File

@ -0,0 +1,34 @@
# Template file for 'libbpf'
pkgname=libbpf
version=1.1.0
revision=1
build_wrksrc="src"
build_style=gnu-makefile
hostmakedepends="pkg-config"
makedepends="elfutils-devel"
short_desc="Library for working with (e)BPF"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="LGPL-2.1-only, BSD-2-Clause"
homepage="https://github.com/libbpf/libbpf"
distfiles="https://github.com/libbpf/libbpf/archive/refs/tags/v${version}.tar.gz"
checksum=5da826c968fdb8a2f714701cfef7a4b7078be030cf58b56143b245816301cbb8
post_install() {
vlicense ../LICENSE
vlicense ../LICENSE.BSD-2-Clause
# ugly hack until kernel-libc-headers is at version 6.1 :/
vsed -i -e 's:<linux/btf.h>:<bpf/linux/btf.h>:g' ${DESTDIR}/usr/include/bpf/btf.h
vinstall ../include/uapi/linux/btf.h 0644 usr/include/bpf/linux
}
libbpf-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/*.a
vmove usr/lib/*.so
vmove usr/lib/pkgconfig
}
}