void-packages/srcpkgs/intel-ucode/template
2014-05-24 10:37:45 +02:00

26 lines
845 B
Text

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