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

john: fix link, add to right place
author Erkan Yilmaz <erkan@slitaz.org>
date Sun Dec 22 16:03:18 2019 +0000 (2019-12-22)
parents 8310ba69ef5b
children 4cdb6e72455c
rev   line source
al@20178 1 # SliTaz package receipt.
al@20177 2
al@20177 3 PACKAGE="intel-microcode"
Hans-G?nter@21052 4 VERSION="20180807a"
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@21052 14 TARBALL="$PACKAGE-$VERSION.tgz"
Hans-G?nter@21052 15 WGET_URL="https://downloadmirror.intel.com/28087/eng/microcode-$VERSION.tgz"
al@20178 16
al@20178 17 DEPENDS="linux"
al@20177 18
Hans-G?nter@21052 19 compile_rules()
Hans-G?nter@21052 20 {
al@20177 21 mkdir -p $install/lib/firmware/
Hans-G?nter@21052 22
al@20177 23 cp -r $src/intel-ucode/ $install/lib/firmware/
al@20177 24
al@20177 25 install -Dm644 $stuff/LICENSE $install/usr/share/licenses/$PACKAGE/LICENSE
al@20177 26 }
al@20177 27
Hans-G?nter@21052 28 genpkg_rules()
Hans-G?nter@21052 29 {
al@20178 30 cp -r $install/* $fs
al@20177 31 }
al@20177 32
Hans-G?nter@21052 33 post_install()
Hans-G?nter@21052 34 {
al@20177 35 if [ -z "$1" -a -e /sys/devices/system/cpu/microcode/reload ]; then
al@20177 36 echo 1 > /sys/devices/system/cpu/microcode/reload
al@20177 37 fi
al@20177 38 }