32 lines
864 B
Bash
32 lines
864 B
Bash
# Template file for 'pahole'
|
|
pkgname=pahole
|
|
version=1.12
|
|
revision=1
|
|
build_style=cmake
|
|
configure_args="-D__LIB=lib"
|
|
makedepends="elfutils-devel zlib-devel"
|
|
short_desc="Various DWARF utils"
|
|
maintainer="Andrew Benson <abenson+void@gmail.com>"
|
|
license="GPL-2.0-only"
|
|
homepage="http://git.kernel.org/?p=devel/pahole/pahole.git;a=summary"
|
|
distfiles="https://git.kernel.org/pub/scm/devel/pahole/pahole.git/snapshot/pahole-${version}.tar.gz"
|
|
checksum=2452464cbfdbaece6187d7860000fe8ef24b7271f88122cf540d3e0ab4a644d1
|
|
|
|
case $XBPS_TARGET_MACHINE in
|
|
*-musl) makedepends+=" musl-obstack argp-standalone"
|
|
esac
|
|
|
|
pre_configure() {
|
|
case $XBPS_TARGET_MACHINE in
|
|
*-musl) sed -i CMakeLists.txt -e "/^target_link_libraries/s/)/ obstack argp)/"
|
|
esac
|
|
}
|
|
|
|
pahole-devel_package() {
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove /usr/include
|
|
vmove "/usr/lib/*.so"
|
|
}
|
|
}
|