void-packages/srcpkgs/intel-ucode/template

25 lines
825 B
Bash
Raw Normal View History

2012-01-10 08:29:26 +00:00
# Template file for 'intel-ucode'
pkgname=intel-ucode
2015-01-28 08:56:13 +00:00
version=20150121
2015-08-21 21:29:54 +00:00
revision=2
noarch=yes
create_wrksrc=yes
2012-01-10 08:29:26 +00:00
short_desc="Microcode update files for Intel CPUs"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
2012-01-10 08:29:26 +00:00
license="INTEL Software License Agreement"
2013-03-02 10:05:32 +00:00
homepage="http://downloadcenter.intel.com/SearchResult.aspx?lang=eng&keyword=%22microcode%22"
2015-01-28 08:56:13 +00:00
distfiles="http://downloadmirror.intel.com/24661/eng/microcode-${version}.tgz"
checksum=23353b93bb421971496cea5e9f9d390ce0ed22580a8cc45ae7b3b322dcd8f6b3
2014-02-02 16:48:27 +00:00
2015-08-21 21:29:54 +00:00
only_for_archs="i686 x86_64 i686-musl x86_64-musl"
2012-01-10 08:29:26 +00:00
do_build() {
2014-10-12 18:33:08 +00:00
${CC} -Wall ${CFLAGS} -o intel-microcode2ucode ${FILESDIR}/intel-microcode2ucode.c
2012-01-10 08:29:26 +00:00
./intel-microcode2ucode ./microcode.dat
}
do_install() {
2012-07-09 15:50:00 +00:00
vmkdir usr/lib/firmware/intel-ucode
vcopy "intel-ucode/*" usr/lib/firmware/intel-ucode
2014-10-12 18:33:08 +00:00
vlicense ${FILESDIR}/LICENSE
2012-01-10 08:29:26 +00:00
}