39 lines
1.1 KiB
Bash
39 lines
1.1 KiB
Bash
# Template file for 'pahole'
|
|
pkgname=pahole
|
|
version=1.16
|
|
revision=1
|
|
_bpfver=0.0.6
|
|
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
|
|
https://github.com/libbpf/libbpf/archive/v${_bpfver}.tar.gz"
|
|
checksum="a8d013fb82490b03481754a75a26336c093ee69d3b8da1c350ab0bb12102ddca
|
|
dbed8304077699fd59b0271545ac5923a6e0581db4ef90d6124efa6fe9df84c1"
|
|
|
|
case $XBPS_TARGET_MACHINE in
|
|
*-musl) makedepends+=" musl-obstack argp-standalone"
|
|
esac
|
|
|
|
pre_patch() {
|
|
rm -rf lib/bpf
|
|
mv "../libbpf-${_bpfver}/" "lib/bpf"
|
|
}
|
|
|
|
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"
|
|
}
|
|
}
|