void-packages/srcpkgs/intel-ucode/template

21 lines
774 B
Bash

# Template file for 'intel-ucode'
pkgname=intel-ucode
version=20230613
revision=1
archs="i686* x86_64*"
short_desc="Microcode update files for Intel CPUs"
maintainer="Mohammed Anas <triallax@tutanota.com>"
license="custom: Proprietary"
homepage="https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files"
distfiles="https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files/archive/microcode-${version}.tar.gz"
checksum=894d822d2347222a2595d4fc47d358e01d35a54780123100c317dfc31b1b0cc9
repository=nonfree
do_install() {
vmkdir usr/lib/firmware/intel-ucode
vcopy "intel-ucode/*" usr/lib/firmware/intel-ucode
vmkdir usr/lib/dracut/dracut.conf.d
echo "early_microcode=yes" >> ${DESTDIR}/usr/lib/dracut/dracut.conf.d/intel_ucode.conf
vlicense license
}