void-packages/srcpkgs/kexec-tools/template
2023-11-21 13:50:20 -05:00

28 lines
765 B
Bash

# Template file for 'kexec-tools'
pkgname=kexec-tools
version=2.0.27
revision=1
build_style=gnu-configure
hostmakedepends="tar xz"
makedepends="zlib-devel liblzma-devel"
short_desc="Tools to support fast kexec reboots"
maintainer="Orphaned <orphan@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=38d78bcfa33a88928324b57dc81f50c1dfc279eede45e80957ca18f4e84b8187
CFLAGS="-fcommon"
case "$XBPS_TARGET_MACHINE" in
ppc-musl) nopie=yes;; # textrels not supported
esac
tar_cmd=tar
pre_build() {
rm ${XBPS_WRAPPERDIR}/strip
case "$XBPS_TARGET_MACHINE" in
i686*) vsed -i '/compat_x86_64.S/d' purgatory/arch/i386/Makefile;;
esac
}