void-packages/srcpkgs/intel-ucode/template

21 lines
717 B
Bash

# Template file for 'intel-ucode'
pkgname=intel-ucode
version=20221108
revision=1
archs="i686* x86_64*"
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=8d14a914815f56c27b1f41be0fd699d1afcfdbc05432056427e455100798975e
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
}