void-packages/srcpkgs/intel-ucode/template

24 lines
825 B
Bash

# Template file for 'intel-ucode'
pkgname=intel-ucode
version=20161104
revision=2
noarch=yes
create_wrksrc=yes
short_desc="Microcode update files for Intel CPUs"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="INTEL Software License Agreement"
homepage="http://downloadcenter.intel.com/SearchResult.aspx?lang=eng&keyword=%22microcode%22"
distfiles="http://downloadmirror.intel.com/26400/eng/microcode-${version}.tgz"
checksum=70154ca62ff9b3da6291dfdecc90daaeb399d7290c0d308d719df16dff5ee3d1
only_for_archs="i686 x86_64 i686-musl x86_64-musl"
do_build() {
${CC} -Wall ${CFLAGS} -o intel-microcode2ucode ${FILESDIR}/intel-microcode2ucode.c
./intel-microcode2ucode ./microcode.dat
}
do_install() {
vmkdir usr/lib/firmware/intel-ucode
vcopy "intel-ucode/*" usr/lib/firmware/intel-ucode
vlicense ${FILESDIR}/LICENSE
}