32 lines
874 B
Bash
32 lines
874 B
Bash
# Template file for 'pahole'
|
|
pkgname=pahole
|
|
version=1.22
|
|
revision=1
|
|
wrksrc="dwarves-${version}"
|
|
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=8bcba48be39da2868142440dc2ee7f1d7b99ffec8095e3a1afb280dc1a7c63df
|
|
|
|
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"
|
|
}
|
|
}
|