void-packages/srcpkgs/intel-ucode/template
2013-09-28 10:03:19 +02:00

31 lines
878 B
Text

# Template file for 'intel-ucode'
pkgname=intel-ucode
version=20130906
revision=1
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/23166/eng/microcode-${version}.tgz"
checksum=7b6ba0db102581674c29a2e2b859ba51e5cfb11e6cbef9056e4ac6cde2116386
create_wrksrc=yes
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}
}
intel-ucode_package() {
noarch="yes"
pkg_install() {
vmove all
}
}