wok-current view intel-microcode/receipt @ rev 24056
Up zstd (1.5.0)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jun 08 09:29:15 2021 +0000 (2021-06-08) |
parents | 4cdb6e72455c |
children | cc915c928cd6 |
line source
1 # SliTaz package receipt.
3 PACKAGE="intel-microcode"
4 VERSION="20191115"
5 CATEGORY="kernel"
6 SHORT_DESC="Intel processor microcode update for Linux."
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="other"
9 WEB_SITE="https://downloadcenter.intel.com/search?keyword=processor+microcode+data+file"
10 # See also: https://wiki.archlinux.org/index.php/Microcode
11 # and https://www.archlinux.org/packages/extra/any/intel-ucode/
14 TARBALL="$PACKAGE-$VERSION.tar.gz"
15 WGET_URL="https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files/archive/microcode-$VERSION.tar.gz"
17 DEPENDS="linux"
19 current_version()
20 {
21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
22 sed '/archive.*tar/!d;s|.*/microcode-\(.*\).tar.*|\1|;q'
23 }
25 compile_rules()
26 {
27 mkdir -p $install/lib/firmware/
29 cp -r $src/intel-ucode/ $install/lib/firmware/
31 install -Dm644 $stuff/LICENSE $install/usr/share/licenses/$PACKAGE/LICENSE
32 }
34 genpkg_rules()
35 {
36 cp -r $install/* $fs
37 }
39 post_install()
40 {
41 if [ -z "$1" -a -e /sys/devices/system/cpu/microcode/reload ]
42 then
43 echo 1 > /sys/devices/system/cpu/microcode/reload
44 fi
45 }