wok-current annotate intel-microcode/receipt @ rev 20178
intel-microcode: receipt v.1
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Jan 25 03:48:04 2018 +0200 (2018-01-25) |
parents | a8a076da2e87 |
children | 8310ba69ef5b |
rev | line source |
---|---|
al@20178 | 1 # SliTaz package receipt. |
al@20177 | 2 |
al@20177 | 3 PACKAGE="intel-microcode" |
al@20177 | 4 VERSION="20180108" # version hidden by Intel, redirected to -> 20171117 |
al@20177 | 5 CATEGORY="kernel" |
al@20177 | 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 |
al@20177 | 14 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@20177 | 15 WGET_URL="https://downloadmirror.intel.com/27431/eng/microcode-$VERSION.tgz" |
al@20178 | 16 |
al@20178 | 17 DEPENDS="linux" |
al@20177 | 18 |
al@20177 | 19 compile_rules() { |
al@20177 | 20 mkdir -p $install/lib/firmware/ |
al@20177 | 21 cp -r $src/intel-ucode/ $install/lib/firmware/ |
al@20177 | 22 |
al@20177 | 23 install -Dm644 $stuff/LICENSE $install/usr/share/licenses/$PACKAGE/LICENSE |
al@20177 | 24 } |
al@20177 | 25 |
al@20177 | 26 genpkg_rules() { |
al@20178 | 27 cp -r $install/* $fs |
al@20177 | 28 } |
al@20177 | 29 |
al@20177 | 30 post_install() { |
al@20177 | 31 if [ -z "$1" -a -e /sys/devices/system/cpu/microcode/reload ]; then |
al@20177 | 32 echo 1 > /sys/devices/system/cpu/microcode/reload |
al@20177 | 33 fi |
al@20177 | 34 } |