void-packages/srcpkgs/intel-ucode/template

30 lines
947 B
Plaintext
Raw Normal View History

2012-01-10 09:29:26 +01:00
# Template file for 'intel-ucode'
pkgname=intel-ucode
2012-11-06 16:01:42 +01:00
_distver=20120606-v2
version=${_distver%-*}v2
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-11-06 16:01:42 +01:00
homepage="http://downloadcenter.intel.com/Detail_Desc.aspx?DwnldID=21925"
distfiles="http://downloadmirror.intel.com/21925/eng/microcode-${_distver}.tgz"
checksum=977652df13ff7e1eb048bdc0a6934f2f1bb1a938327e83d4766aafa0c7beb5c7
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."
2012-11-06 16:01:42 +01:00
create_wrksrc=yes
noarch=yes
2012-01-10 09:29:26 +01:00
do_build() {
cp ${FILESDIR}/*.c .
gcc -Wall ${CFLAGS} -o intel-microcode2ucode intel-microcode2ucode.c
./intel-microcode2ucode ./microcode.dat
}
do_install() {
2012-07-09 17:50:00 +02:00
vmkdir usr/lib/firmware/intel-ucode
vcopy "intel-ucode/*" usr/lib/firmware/intel-ucode
2012-01-10 09:29:26 +01:00
vinstall ${FILESDIR}/LICENSE 644 usr/share/licenses/${pkgname}
}