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')
15 source=(https://github.com/libbpf/libbpf/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
16 sha512sums=('e3bb602f55215a4f030e564af7321ba6338937c426fcaee478b607f88b0c773c40a0c3f59a2b345bda951a19e79061733f8a3fdc10a6292e92782e65754b584a')
17 b2sums=('084be7d4258500fa894560ed2e52821addcc5d150dcd77fd646271b614d788b7931271be9c3e46fdbc4ed93d053ea3e09023158a8e4a31f9452d10dcb0677b58')
20 cd ${pkgname}-${pkgver}
25 cd ${pkgname}-${pkgver}
26 make -C src DESTDIR="${pkgdir}" LIBSUBDIR=lib install install_headers
27 install -Dm 644 LICENSE* -t "${pkgdir}/usr/share/licenses/${pkgname}"
28 install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"