void-packages/srcpkgs/intel-ucode/template

28 lines
866 B
Plaintext
Raw Normal View History

2012-01-10 09:29:26 +01:00
# Template file for 'intel-ucode'
pkgname=intel-ucode
2012-06-26 09:49:23 +02:00
version=20120606
2012-01-10 09:29:26 +01:00
create_wrksrc=yes
2012-06-26 09:49:23 +02:00
noarch=yes
revision=1
2012-01-10 09:29:26 +01:00
short_desc="Microcode update files for Intel CPUs"
maintainer="Juan RP <xtraeme@gmail.com>"
license="INTEL Software License Agreement"
2012-06-26 09:49:23 +02:00
homepage="http://www.intel.com"
distfiles="http://downloadmirror.intel.com/21385/eng/microcode-${version}.tgz"
checksum=e139e438587114028d699162af6dde25b18e1c1cef13c39896a37f22242d4943
2012-01-10 09:29:26 +01:00
long_desc="
This package contains the microcode updates for Intel CPUs for use
with the microcode linux kernel module."
do_build() {
cp ${FILESDIR}/*.c .
gcc -Wall ${CFLAGS} -o intel-microcode2ucode intel-microcode2ucode.c
./intel-microcode2ucode ./microcode.dat
}
do_install() {
vmkdir lib/firmware/intel-ucode
vcopy "intel-ucode/*" lib/firmware/intel-ucode
vinstall ${FILESDIR}/LICENSE 644 usr/share/licenses/${pkgname}
}