blob: 347b79cc0b0915cd16f7ccaaed8b2de279d47cbd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# Maintainer: Adam Jensen <acjensen@gmail.com>
pkgname=libbpf
pkgver=0.0.5
pkgrel=0
pkgdesc="A library for interacting with the Linux kernel's Berkeley Packet Filter (BPF) facility from user space"
url="https://github.com/libbpf/libbpf"
arch="aarch64 x86 x86_64 s390x"
license="GPL-2.0-only"
# No test suite
options="!check"
depends="elfutils"
makedepends="build-base linux-headers elfutils-dev"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/$pkgname/$pkgname/archive/v$pkgver.tar.gz
10-include-stddef.patch
20-consolidate-lib-dirs.patch"
build() {
cd src
make NO_PKG_CONFIG=1
}
package() {
cd src
make install DESTDIR="$pkgdir"
cp -R "$builddir/include/uapi" "$pkgdir/usr/include/uapi"
}
sha512sums="e42f6cc8f834f2d3cf9138d655bd3727ffffb2693850f7f6409ec4d536336bc5fa479a64eefc802a5915e333677eca843f8f1bd0132589bba10bdc89064eee0c libbpf-0.0.5.tar.gz
946e445ffa4c5df42ebac77b7a1c6478b37dc7b55e0883aee195c6a8c4f8718b4dbf98b7c6d3016e1619e59440d8e4a76dad1e843114dfe2f9a2610e5cbb7943 10-include-stddef.patch
26f2b7bee6a11f2c9d4a36b5ee3cd2e85d65f496f0ce9ca49e561f2783ab95b56e23692d5de2364125bbdedd0d5978e884519e7d48131a06077d5578a4504b4a 20-consolidate-lib-dirs.patch"
|