wok-current annotate intel-microcode/receipt @ rev 24314

updated vlgothic-fonts (20141206 -> 20200720)
author Hans-G?nter Theisgen
date Sat Jan 22 13:28:11 2022 +0100 (2022-01-22)
parents 5ea0ce1cecc0
children 63f5ba2b74dc
rev   line source
al@20178 1 # SliTaz package receipt.
al@20177 2
al@20177 3 PACKAGE="intel-microcode"
pascal@24057 4 VERSION="20210216"
al@20177 5 CATEGORY="kernel"
Hans-G?nter@21052 6 SHORT_DESC="Intel processor microcode update for Linux."
al@20177 7 MAINTAINER="al.bobylev@gmail.com"
al@20177 8 LICENSE="other"
al@20177 9 WEB_SITE="https://downloadcenter.intel.com/search?keyword=processor+microcode+data+file"
al@20177 10 # See also: https://wiki.archlinux.org/index.php/Microcode
al@20177 11 # and https://www.archlinux.org/packages/extra/any/intel-ucode/
al@20177 12
al@20178 13
Hans-G?nter@22952 14 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@22952 15 WGET_URL="https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files/archive/microcode-$VERSION.tar.gz"
al@20178 16
al@20178 17 DEPENDS="linux"
al@20177 18
pascal@24055 19 current_version()
pascal@24055 20 {
pascal@24055 21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@24055 22 sed '/archive.*tar/!d;s|.*/microcode-\(.*\).tar.*|\1|;q'
pascal@24055 23 }
pascal@24055 24
Hans-G?nter@21052 25 compile_rules()
Hans-G?nter@21052 26 {
al@20177 27 mkdir -p $install/lib/firmware/
Hans-G?nter@21052 28
Hans-G?nter@22952 29 cp -r $src/intel-ucode/ $install/lib/firmware/
al@20177 30
Hans-G?nter@22952 31 install -Dm644 $stuff/LICENSE $install/usr/share/licenses/$PACKAGE/LICENSE
al@20177 32 }
al@20177 33
Hans-G?nter@21052 34 genpkg_rules()
Hans-G?nter@21052 35 {
Hans-G?nter@22952 36 cp -r $install/* $fs
al@20177 37 }
al@20177 38
Hans-G?nter@21052 39 post_install()
Hans-G?nter@21052 40 {
Hans-G?nter@22952 41 if [ -z "$1" -a -e /sys/devices/system/cpu/microcode/reload ]
Hans-G?nter@22952 42 then
al@20177 43 echo 1 > /sys/devices/system/cpu/microcode/reload
al@20177 44 fi
al@20177 45 }