void-packages/srcpkgs/libbpf/template

31 lines
793 B
Bash

# Template file for 'libbpf'
pkgname=libbpf
version=1.4.5
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=e225c1fe694b9540271b1f2f15eb882c21c34511ba7b8835b0a13003b3ebde8c
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
}
}