commit b5a51502c95ebeb2a0dd36093b7d9a49f0cfbd3f Author: xhaa123 Date: Sun Nov 17 19:24:33 2024 +0800 pahole 1.26-1 diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..aee8126 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# This is an example PKGBUILD file. Use this as a start to creating your own, +# and remove these comments. For more information, see 'man PKGBUILD'. +# NOTE: Please fill out the license field for your package! If it is unknown, +# then please put 'unknown'. + +# Maintainer: Future Linux Team +pkgname=pahole +pkgver=1.26 +pkgrel=1 +pkgdesc="Pahole and other DWARF utils" +arch=('x86_64') +url="https://git.kernel.org/pub/scm/devel/pahole/pahole.git" +license=('GPL-2.0-only') +depends=('bash' 'elfutils' 'zlib') #'libdwarf') +makedepends=('cmake' 'ninja') +source=(https://fedorapeople.org/~acme/dwarves/dwarves-${pkgver}.tar.xz) +sha256sums=(ad4c08339850e404609e2808012580b7e98366d2b91054bb93fe6dca94651fb4) + +build() { + cd dwarves-${pkgver} + + cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=release \ + -D__LIB=lib64 \ + -GNinja -Bbuild + + cmake --build build +} + +package() { + cd dwarves-${pkgver} + + DESTDIR=${pkgdir} cmake --install build +}