void-packages/srcpkgs/libbpf/template

31 lines
793 B
Bash

# Template file for 'libbpf'
pkgname=libbpf
version=1.4.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=4271dfd51f59d23c03d9ae62d8a92622af0f5216a620a7a666c4975c3c7cda6e
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
}
}