1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
6 pkgdesc="Pahole and other DWARF utils"
7 url="https://git.kernel.org/pub/scm/devel/pahole/pahole.git"
10 depends=(libelf python)
11 makedepends=(git cmake ninja)
12 provides=(libdwarves{,_emit,_reorganize}.so)
13 _commit=f02af2553ea58ae1186226af0d0ec835a248358f # tags/v1.22^0
14 source=("git+https://git.kernel.org/pub/scm/devel/pahole/pahole.git#commit=$_commit"
15 "git+https://github.com/libbpf/libbpf"
19 '61f232298d59cbcd5e3c863e3f6866b45b7224d5c649dfb7737196233df034f1')
23 git describe --tags | sed 's/^v//;s/-/+/g'
29 # https://bugs.archlinux.org/task/70013
30 git apply -3 ../python.diff
33 git submodule set-url lib/bpf "$srcdir/libbpf"
38 cmake -S pahole -B build -G Ninja \
39 -DCMAKE_INSTALL_PREFIX=/usr \
40 -DCMAKE_BUILD_TYPE=None \
46 DESTDIR="$pkgdir" cmake --install build
48 python -m compileall -d / "$pkgdir"
49 python -O -m compileall -d / "$pkgdir"