39 lines
1.1 KiB
Bash
39 lines
1.1 KiB
Bash
# Template file for 'pahole'
|
|
pkgname=pahole
|
|
version=1.15
|
|
revision=1
|
|
_bpfver=0.0.3
|
|
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="a84e183a0ef652e4198a161a20d9eeb45d3c153f5208e1cea833e1f28ae6207d
|
|
972da73f4774be062a112fc0c9ebb5d238b775ed4512df5ce2cf20c8333929d3"
|
|
|
|
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"
|
|
}
|
|
}
|