summaryrefslogtreecommitdiff
path: root/system/libbpf/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'system/libbpf/APKBUILD')
-rw-r--r--system/libbpf/APKBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/system/libbpf/APKBUILD b/system/libbpf/APKBUILD
new file mode 100644
index 000000000..296878162
--- /dev/null
+++ b/system/libbpf/APKBUILD
@@ -0,0 +1,31 @@
+# Contributor: Dan Theisen <djt@hxx.in>
+# Maintainer: Dan Theisen <djt@hxx.in>
+pkgname=libbpf
+pkgver=0.5.0
+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"
+options="!check" # no tests
+license="LGPL-2.1 OR BSD-2-Clause"
+depends=""
+makedepends="zlib-dev libelf-dev linux-headers"
+subpackages="$pkgname-dev"
+source="libbpf-$pkgver.tar.gz::https://github.com/libbpf/libbpf/archive/refs/tags/v$pkgver.tar.gz
+ 10-include-stddef.patch
+ 20-consolidate-lib-dirs.patch
+ "
+
+build() {
+ cd src
+ make
+}
+
+package() {
+ cd src
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="3c578d3e6e93a306a1f182978e54f35fec8acfa51fad5d7de72c5003f10c266d7474e82d6dd045311fcaf8c18aa8cebe64a3336a458a9ea477e5a58e5111dd85 libbpf-0.5.0.tar.gz
+946e445ffa4c5df42ebac77b7a1c6478b37dc7b55e0883aee195c6a8c4f8718b4dbf98b7c6d3016e1619e59440d8e4a76dad1e843114dfe2f9a2610e5cbb7943 10-include-stddef.patch
+9398dd33df9e93f7bd4f68d6bb1da3731075e2f95fdcc3b9cc471e823c2f6700351d458976b804d3f56be50b824a8ce7cda482945a1e78522a3973b22bdbf4d5 20-consolidate-lib-dirs.patch"