makedepends=(rsync)

description="Library for loading eBPF programs and reading and manipulating eBPF objects from user-space"
url="https://github.com/libbpf/libbpf"

packager="Great-OS Team"
maintainer="Great-OS Team"

name="libbpf"
version="1.6.2"
release=1

source=(https://github.com/libbpf/libbpf/archive/v$version/libbpf-$version.tar.gz)
build() {
  cd ${name}-${version}

  make -C src
  make -C src DESTDIR="${PKG}" LIBSUBDIR=lib install install_headers

  install -Dm 644 LICENSE* -t "${PKG}/usr/share/licenses/${name-$version}"
  install -Dm 644 README.md -t "${PKG}/usr/share/doc/${name-$version}"
}
