[arch-commits] Commit in intel-ucode/repos (testing-any testing-any/PKGBUILD)

Christian Hesse eworm at archlinux.org
Tue Nov 12 19:21:42 UTC 2019


    Date: Tuesday, November 12, 2019 @ 19:21:42
  Author: eworm
Revision: 368004

archrelease: copy trunk to testing-any

Added:
  intel-ucode/repos/testing-any/
  intel-ucode/repos/testing-any/PKGBUILD
    (from rev 368003, intel-ucode/trunk/PKGBUILD)

----------+
 PKGBUILD |   31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

Copied: intel-ucode/repos/testing-any/PKGBUILD (from rev 368003, intel-ucode/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD	                        (rev 0)
+++ testing-any/PKGBUILD	2019-11-12 19:21:42 UTC (rev 368004)
@@ -0,0 +1,31 @@
+# Maintainer: Thomas Bächler <thomas at archlinux.org>
+
+pkgname=intel-ucode
+pkgver=20191112
+pkgrel=1
+pkgdesc='Microcode update files for Intel CPUs'
+arch=('any')
+url='https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files'
+replaces=('microcode_ctl')
+makedepends=('iucode-tool')
+license=('custom')
+source=("${pkgname}-${pkgver/./}.tar.gz::https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files/archive/microcode-${pkgver/./}.tar.gz")
+sha256sums=('0000f7cf96f2b07a1ba9d1fc0bcfcb49d0edb91f7d487a57a88c147e57c5873b')
+
+build() {
+  cd Intel-Linux-Processor-Microcode-Data-Files-microcode-${pkgver/./}
+
+  rm -f intel-ucode{,-with-caveats}/list
+  mkdir -p kernel/x86/microcode
+  iucode_tool -w kernel/x86/microcode/GenuineIntel.bin intel-ucode{,-with-caveats}/
+  # Make intel-ucode.img reproducible
+  [ ! -z $SOURCE_DATE_EPOCH ] && touch -d @$SOURCE_DATE_EPOCH kernel/x86/microcode/GenuineIntel.bin
+  echo kernel/x86/microcode/GenuineIntel.bin | bsdcpio -o -H newc -R 0:0 > intel-ucode.img
+}
+
+package() {
+  cd Intel-Linux-Processor-Microcode-Data-Files-microcode-${pkgver/./}
+
+  install -D -m0644 intel-ucode.img "${pkgdir}"/boot/intel-ucode.img
+  install -D -m0644 license "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}



More information about the arch-commits mailing list