summaryrefslogtreecommitdiff
path: root/libs/libbpf/MAKEPKG
diff options
context:
space:
mode:
Diffstat (limited to 'libs/libbpf/MAKEPKG')
-rw-r--r--libs/libbpf/MAKEPKG39
1 files changed, 39 insertions, 0 deletions
diff --git a/libs/libbpf/MAKEPKG b/libs/libbpf/MAKEPKG
new file mode 100644
index 0000000..31d0de7
--- /dev/null
+++ b/libs/libbpf/MAKEPKG
@@ -0,0 +1,39 @@
+#!/bin/mkpkg
+# description: BPF CO-RE library for loading and managing eBPF programs
+# url: https://github.com/libbpf/libbpf
+
+name=libbpf
+version=1.7.0
+release=1
+depends=(libelf zlib)
+source=(https://github.com/libbpf/libbpf/archive/v$version.tar.gz)
+renames=($name-$version.tar.gz)
+
+sha256sums=(
+ "7ab5feffbf78557f626f2e3e3204788528394494715a30fc2070fcddc2051b7b"
+)
+
+build() {
+ cd $name-$version/src
+
+ make \
+ CC=${CC:-cc} \
+ PREFIX=/usr \
+ LIBDIR=/usr/lib
+
+ make \
+ PREFIX=/usr \
+ LIBDIR=/usr/lib \
+ DESTDIR=$PKG \
+ install
+
+ # remove static library
+ rm -f $PKG/usr/lib/libbpf.a
+}
+
+signify() {
+ untrusted comment: public key
+ RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
+}
+
+# vim: filetype=sh