void-packages/srcpkgs/pahole/template

33 lines
863 B
Bash

# Template file for 'pahole'
pkgname=pahole
reverts="1.24_1"
version=1.23
revision=4
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://fedorapeople.org/~acme/dwarves/dwarves-${version}.tar.xz"
checksum=f085c25f068627d10e54bd030464f8952f5b2211d4ba26047fe209377470862a
case $XBPS_TARGET_MACHINE in
*-musl) makedepends+=" musl-obstack-devel 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"
}
}