31 lines
808 B
Bash
31 lines
808 B
Bash
# Template file for 'libbpf'
|
|
pkgname=libbpf
|
|
version=1.5.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=53492aff6dd47e4da04ef5e672d753b9743848bdb38e9d90eafbe190b7983c44
|
|
|
|
post_install() {
|
|
vlicense ../LICENSE
|
|
vlicense ../LICENSE.BSD-2-Clause
|
|
}
|
|
|
|
libbpf-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${sourcepkg}>=${version}_${revision} elfutils-devel"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/*.a
|
|
vmove usr/lib/*.so
|
|
vmove usr/lib/pkgconfig
|
|
}
|
|
}
|