# Template file for 'kexec-tools'
pkgname=kexec-tools
version=2.0.19
revision=1
build_style=gnu-configure
makedepends="zlib-devel liblzma-devel"
short_desc="Tools to support fast kexec reboots"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="GPL-2.0-only"
homepage="http://kernel.org/pub/linux/utils/kernel/kexec/"
distfiles="${KERNEL_SITE}/utils/kernel/kexec/${pkgname}-${version}.tar.xz"
checksum=ed8001b335ac8f8a9631387d1b91f6e61e8d6f1f45a8e198a78cfb4318895e0e

pre_build() {
	rm ${XBPS_WRAPPERDIR}/strip
	case "$XBPS_TARGET_MACHINE" in
		i686*) vsed -i '/compat_x86_64.S/d' purgatory/arch/i386/Makefile;;
	esac
}
