# Build template for 'kernel-xen'.
. ${XBPS_SRCPKGDIR}/kernel/template

# Override required vars.
pkgname=kernel-xen-dom0
_kernel_xen_dom0=yes
_kernel_ver=2.6.32
# This matches upstream version from linux-2.6-xen xen-stable branch.
_kernel_patch_ver=9
_kernel_orig_patch_ver=9
version=${_kernel_ver}.${_kernel_patch_ver}
wrksrc="linux-${_kernel_ver}.${_kernel_orig_patch_ver}"
distfiles="${KERNEL_SITE}/kernel/v2.6/linux-${_kernel_ver}.${_kernel_orig_patch_ver}.tar.bz2"
checksum=f4f89aa0bed6886f90cfcb5a1933be0cb46e736d93d905ef582ed659e4d1d0bc
short_desc="The Linux kernel and associated stuff (2.6 branch + Xen dom0)"
long_desc="
 This package provides the linux kernel image and associated modules
 supporting Xen in domain 0."

subpackages="kernel-headers-xen-dom0"
unset triggers

post_install()
{
	rm -rf ${DESTDIR}/lib/firmware
}
