aboutsummaryrefslogtreecommitdiffstats
path: root/community/libbpf/APKBUILD
blob: 5a4ac019ad9462436a425741ccf8ed1ba4e56dc4 (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.3
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="91c3368626e731b5868fd1bb6d16bd049b2ed0d5cbf966647fa1069cf8c912d91f3d734f05353a0c16c8ff03790ca8e1e6515fff66e4a76d70ffdf2dbac6d8e3  libbpf-0.3.tar.gz
1f19209278f7feaee27a8211f11851c3fe601e5a5c548c8b1bcf1aae7e17c0fe2933e07a3b5b38115c940949ca4c30ad669c618bad69fe2b3d8d1a4d91fecc1b  10-consolidate-lib-dirs.patch"