# Maintainer: Levente Polyak # Contributor: Adrian Bacircea pkgname=libbpf pkgver=1.0.1 pkgrel=1 pkgdesc='Library for loading eBPF programs and reading and manipulating eBPF objects from user-space' url='https://github.com/libbpf/libbpf' arch=('x86_64') license=('LGPL2.1') depends=('glibc' 'libelf' 'linux-api-headers') makedepends=('rsync') provides=('libbpf.so') options=('debug') source=(https://github.com/libbpf/libbpf/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz) sha512sums=('2ee6d85c0a33f723e5b93ddddf97118e67754c9e44ca0449ceb49126820f89fea9ddc282a5add764dc4da090af6164cc6641b497489253d192ed01bc397df9be') b2sums=('24e43f9a2b20e6f708b74ff50c8ce243546681201b1d72d6b35a95dd85b59032069814792739d3b2a6adaa007958a142a687e901e36a193fd02cdca69926d08f') build() { cd ${pkgname}-${pkgver} make -C src } package() { cd ${pkgname}-${pkgver} make -C src DESTDIR="${pkgdir}" LIBSUBDIR=lib install install_headers install -Dm 644 LICENSE* -t "${pkgdir}/usr/share/licenses/${pkgname}" install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}" } # vim: ts=2 sw=2 et: