1 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
2 # Contributor: Adrian Bacircea <adrian.bacircea@gmail.com>
7 pkgdesc='Library for loading eBPF programs and reading and manipulating eBPF objects from user-space'
8 url='https://github.com/libbpf/libbpf'
11 depends=('glibc' 'libelf' 'linux-api-headers')
13 provides=('libbpf.so')
14 source=(https://github.com/libbpf/libbpf/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
15 sha512sums=('2ee6d85c0a33f723e5b93ddddf97118e67754c9e44ca0449ceb49126820f89fea9ddc282a5add764dc4da090af6164cc6641b497489253d192ed01bc397df9be')
16 b2sums=('24e43f9a2b20e6f708b74ff50c8ce243546681201b1d72d6b35a95dd85b59032069814792739d3b2a6adaa007958a142a687e901e36a193fd02cdca69926d08f')
19 cd ${pkgname}-${pkgver}
24 cd ${pkgname}-${pkgver}
25 make -C src DESTDIR="${pkgdir}" LIBSUBDIR=lib install install_headers
26 install -Dm 644 LICENSE* -t "${pkgdir}/usr/share/licenses/${pkgname}"
27 install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"