[arch-commits] Commit in pahole/repos (staging-x86_64 staging-x86_64/PKGBUILD)

Felix Yan felixonmars at archlinux.org
Thu Nov 12 19:08:33 UTC 2020


    Date: Thursday, November 12, 2020 @ 19:08:32
  Author: felixonmars
Revision: 400691

archrelease: copy trunk to staging-x86_64

Added:
  pahole/repos/staging-x86_64/
  pahole/repos/staging-x86_64/PKGBUILD
    (from rev 400690, pahole/trunk/PKGBUILD)

----------+
 PKGBUILD |   49 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)

Copied: pahole/repos/staging-x86_64/PKGBUILD (from rev 400690, pahole/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2020-11-12 19:08:32 UTC (rev 400691)
@@ -0,0 +1,49 @@
+# Maintainer: Jan Alexander Steffens (heftig) <heftig at archlinux.org>
+
+pkgname=pahole
+pkgver=1.18
+pkgrel=2
+pkgdesc="Pahole and other DWARF utils"
+url="https://git.kernel.org/pub/scm/devel/pahole/pahole.git"
+arch=(x86_64)
+license=(GPL2)
+depends=(libelf python)
+makedepends=(git cmake ninja)
+provides=(libdwarves{,_emit,_reorganize}.so)
+_commit=fdc639188cb514e4b692db291089a9770f414e1f  # tags/v1.18^0
+source=("git+https://git.kernel.org/pub/scm/devel/pahole/pahole.git#commit=$_commit"
+        "git+https://github.com/libbpf/libbpf")
+sha256sums=('SKIP'
+            'SKIP')
+
+pkgver() {
+  cd pahole
+  git describe --tags | sed 's/^v//;s/-/+/g'
+}
+
+prepare() {
+  cd pahole
+
+  git submodule init
+  git submodule set-url lib/bpf "$srcdir/libbpf"
+  git submodule update
+}
+
+build() {
+  CFLAGS+=" $CPPFLAGS"
+  cmake -S pahole -B build -G Ninja \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_BUILD_TYPE=None \
+    -D__LIB=lib
+  cmake --build build
+}
+
+package() {
+  DESTDIR="$pkgdir" cmake --install build
+
+  export PYTHONHASHSEED=0
+  python -m compileall -d / "$pkgdir"
+  python -O -m compileall -d / "$pkgdir"
+}
+
+# vim:set sw=2 et:



More information about the arch-commits mailing list