wok view intel-microcode/receipt @ rev 25553

Up amd-microcode (2021.Sep.10), intel-microcode (20230214)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Apr 09 14:47:24 2023 +0000 (13 months ago)
parents 8ea0030e77cb
children 20ad21d5532c
line source
1 # SliTaz package receipt.
3 PACKAGE="intel-microcode"
4 VERSION="20230214"
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://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files"
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 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
23 sed '/archive.*tar/!d;s|.*/microcode-\(.*\).tar.*|\1|;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 mkdir -p $install/lib/firmware/
31 cp -r $src/intel-ucode/ $install/lib/firmware/
33 install -Dm644 $stuff/LICENSE $install/usr/share/licenses/$PACKAGE/LICENSE
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 cp -r $install/* $fs
40 }
42 # Pre and post install commands for Tazpkg.
43 post_install()
44 {
45 if [ -z "$1" -a -e /sys/devices/system/cpu/microcode/reload ]
46 then
47 echo 1 > /sys/devices/system/cpu/microcode/reload
48 fi
49 }