aboutsummaryrefslogtreecommitdiffstats
path: root/community/libbpf/APKBUILD
blob: 6f3a65710c4c55af0d014afe0cb98e40097c3305 (plain) (blame)
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
# Maintainer: Adam Jensen <acjensen@gmail.com>
pkgname=libbpf
pkgver=0.0.8
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="all"
license="GPL-2.0-only"
# No test suite
options="!check"
depends="elfutils"
makedepends="build-base linux-headers elfutils-dev zlib-dev"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/libbpf/libbpf/archive/v$pkgver.tar.gz
	10-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="1074fb52b7a158e4e2713c4c7083528ccf2d99b899853078f230234ba112071bfa66e174d8800d36516e26d5bf06da44d100a5b2f866d267f62c9308f431220c  libbpf-0.0.8.tar.gz
26f2b7bee6a11f2c9d4a36b5ee3cd2e85d65f496f0ce9ca49e561f2783ab95b56e23692d5de2364125bbdedd0d5978e884519e7d48131a06077d5578a4504b4a  10-consolidate-lib-dirs.patch"