2012-01-10 09:29:26 +01:00
|
|
|
# Template file for 'intel-ucode'
|
|
|
|
pkgname=intel-ucode
|
2013-09-28 10:03:19 +02:00
|
|
|
version=20130906
|
2012-11-06 16:01:42 +01:00
|
|
|
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"
|
2013-03-02 11:05:32 +01:00
|
|
|
homepage="http://downloadcenter.intel.com/SearchResult.aspx?lang=eng&keyword=%22microcode%22"
|
2013-09-28 10:03:19 +02:00
|
|
|
distfiles="http://downloadmirror.intel.com/23166/eng/microcode-${version}.tgz"
|
|
|
|
checksum=7b6ba0db102581674c29a2e2b859ba51e5cfb11e6cbef9056e4ac6cde2116386
|
2012-01-10 09:29:26 +01:00
|
|
|
|
2012-11-06 16:01:42 +01:00
|
|
|
create_wrksrc=yes
|
|
|
|
|
2012-01-10 09:29:26 +01:00
|
|
|
do_build() {
|
|
|
|
cp ${FILESDIR}/*.c .
|
2013-03-02 11:05:32 +01:00
|
|
|
${CC} -Wall ${CFLAGS} -o intel-microcode2ucode intel-microcode2ucode.c
|
2012-01-10 09:29:26 +01:00
|
|
|
./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}
|
|
|
|
}
|
2013-04-12 16:39:50 +02:00
|
|
|
|
|
|
|
intel-ucode_package() {
|
|
|
|
noarch="yes"
|
|
|
|
pkg_install() {
|
2013-09-28 10:03:19 +02:00
|
|
|
vmove all
|
2013-04-12 16:39:50 +02:00
|
|
|
}
|
|
|
|
}
|