40 lines
1.1 KiB
Bash
40 lines
1.1 KiB
Bash
# Template file for 'pahole'
|
|
pkgname=pahole
|
|
version=1.18
|
|
revision=1
|
|
_bpfver=0.1.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
|
|
https://github.com/libbpf/libbpf/archive/v${_bpfver}.tar.gz"
|
|
checksum="bb436a4b5e856c8963b1ea52260da064dc985f6e3832b29adec094422365a5a7
|
|
3fd271cf65b39bf38432b29d9dd2f694600c97dab0928baee419a65b5db4e598"
|
|
|
|
case $XBPS_TARGET_MACHINE in
|
|
*-musl) makedepends+=" musl-obstack-devel 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"
|
|
}
|
|
}
|