void-packages/srcpkgs/intel-ucode/template
2020-11-19 11:04:35 -05:00

21 lines
790 B
Bash

# Template file for 'intel-ucode'
pkgname=intel-ucode
version=20201118
revision=1
archs="i686* x86_64*"
wrksrc="Intel-Linux-Processor-Microcode-Data-Files-microcode-${version}"
short_desc="Microcode update files for Intel CPUs"
maintainer="Andrew J. Hesford <ajh@sideband.org>"
license="custom: Proprietary"
homepage="https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files"
distfiles="${homepage}/archive/microcode-${version}.tar.gz"
checksum=e42a264b7b86e80d013d6d00062467352c1f37e0aaea10fe5b51e4d8687921ab
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
}