wok-6.x view intel-microcode/receipt @ rev 25492
Up foomatic-db (4.0-20221117)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Nov 18 09:54:27 2022 +0000 (21 months ago) |
parents | 63f5ba2b74dc |
children | 86d79cfc8e5e |
line source
1 # SliTaz package receipt.
3 PACKAGE="intel-microcode"
4 VERSION="20220207"
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://www.intel.com/content/www/us/en/download-center/home.html?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 }