blob: a5d82fc3cee7dff2380bb1ab5793848d591b2131 (
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Maintainer: Levi Zim (kxxt) <rsworktech@outlook.com>
pkgname=bpftool
pkgver=7.5.0
pkgrel=1
pkgdesc="tool for inspection and simple manipulation of eBPF programs and maps"
arch=(x86_64 aarch64 riscv64)
url="https://github.com/libbpf/bpftool"
conflicts=('bpftool-bin' 'bpftool-git')
license=('GPL-2.0-only OR BSD-2-Clause')
depends=('libelf' 'zlib' 'llvm-libs' 'libcap')
makedepends=(git python-docutils clang llvm binutils)
optdepends=(
#'binutils: for dumping JIT-compiled program instructions' Not working
'clang: idem'
)
source=(
# Source
"git+${url}#tag=v$pkgver"
"git+https://github.com/libbpf/libbpf.git"
)
b2sums=('a36b3871cd103cadbc1bcefe2142ceb6ed45c6c04a71085b498cb72bcee66842ce41b127a66f984894635f5e4a6cdd47c17db9323edc2d10a41d84fdcf903f6c'
'SKIP')
validpgpkeys=(
'4A4DFD51EB67B2C7FE9F6E52057DE720301C09B6' # Quentin Monnet (Isovalent) <quentin@isovalent.com>
)
prepare() {
cd "$pkgname"
git submodule init
git config submodule.libbpf.url "$srcdir/libbpf"
git -c protocol.file.allow=always submodule update
# No sbin, please
sed -i 's|/sbin|/bin|g' src/Makefile*
}
build() {
# https://github.com/mlpack/mlpack/issues/574
# CFLAGS+=" -DPACKAGE -DPACKAGE_VERSION"
cd "$pkgname/src"
make V=1 prefix=/usr
# docs
cd "../docs"
make V=1 prefix=/usr mandir=/usr/share/man
}
package() {
cd "$pkgname/src"
make V=1 prefix=/usr DESTDIR="$pkgdir" install
# docs
cd "../docs"
make V=1 prefix=/usr mandir=/usr/share/man DESTDIR="$pkgdir" install
}
|