void-packages/srcpkgs/libbpf/template

31 lines
793 B
Bash

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