31 lines
1.1 KiB
Plaintext
31 lines
1.1 KiB
Plaintext
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
|
|
# Contributor: Adrian Bacircea <adrian.bacircea@gmail.com>
|
|
|
|
pkgname=libbpf
|
|
pkgver=0.8.0
|
|
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')
|
|
source=(https://github.com/libbpf/libbpf/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
|
|
sha512sums=('8b034a9c8f23207638630b95ff95a651148a800589eb52f2fe09698bf3c4147f2e2008b24de45a70832cc7669cdfebd78bc491e575ca0b27de5c2de3b1fb5637')
|
|
b2sums=('c8e380d80f69f10da9d8a6ea4d19a53e8b34ed5a6072e1b57c61273f0714d13135c917224086de37246d9e47e9b848cbe75aced79278711a3007aa9e564db4b5')
|
|
|
|
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:
|