void-packages/srcpkgs/intel-ucode/template
2019-04-12 19:18:50 +02:00

21 lines
841 B
Bash

# Template file for 'intel-ucode'
pkgname=intel-ucode
version=20190312
revision=1
archs="i686* x86_64*"
wrksrc="Intel-Linux-Processor-Microcode-Data-Files-microcode-${version}"
short_desc="Microcode update files for Intel CPUs"
maintainer="Juan RP <xtraeme@voidlinux.org>"
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=2a4438a66ed1a9b82be943d6d19366c006787ba5af302f425674ca6d8c928099
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
}