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=('b5291e807a3c83cb80a47e3518a3ab5ad0b0e6157842117c0684c32e525dce0cca199c3c9028390b94a73ff968391aa023312d3b8bd7472aff1c9ee5206c424e')
16 b2sums=('cd10fd9133f01d3f8dbd5ed4585e5605c3b9fb0d9f6ee76a49dcb61a0555edfeb85e333f7b8eb069f47a65d0ab24dcdc33502bd660378cd662a366f10de627a4')
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}"