35 lines
983 B
Bash
35 lines
983 B
Bash
# 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 <future_linux@163.com>
|
|
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
|
|
}
|