31 lines
793 B
Bash
31 lines
793 B
Bash
# Template file for 'libbpf'
|
|
pkgname=libbpf
|
|
version=1.4.3
|
|
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=d8be49641dd4c5caa27986a8291907176e3b6fd6fe650e4fee5b45f8093fc935
|
|
|
|
post_install() {
|
|
vlicense ../LICENSE
|
|
vlicense ../LICENSE.BSD-2-Clause
|
|
}
|
|
|
|
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
|
|
}
|
|
}
|