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=('3c578d3e6e93a306a1f182978e54f35fec8acfa51fad5d7de72c5003f10c266d7474e82d6dd045311fcaf8c18aa8cebe64a3336a458a9ea477e5a58e5111dd85')
16 b2sums=('9097d808f03cbbe61cd59b24347075e2937603f51350f83f8897123900c911392d7545af8135f39f749132c6518296f1a4d22d37c0c7b4371631f5c63a0dd9ac')
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}"