archrelease: copy trunk to extra-x86_64
[arch-packages.git] / intel-ucode / repos / extra-any / PKGBUILD
blob7608ed5ae0297e1ff7f912b3253d8a4a302feeb4
1 # Maintainer: Thomas Bächler <thomas@archlinux.org>
3 pkgname=intel-ucode
4 pkgver=20230516
5 pkgrel=1
6 pkgdesc='Microcode update files for Intel CPUs'
7 arch=('any')
8 url='https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files'
9 replaces=('microcode_ctl')
10 makedepends=('iucode-tool')
11 license=('custom')
12 source=("${pkgname}-${pkgver/./}.tar.gz::https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files/archive/microcode-${pkgver/./}.tar.gz")
13 sha256sums=('ad8cbc5a273f4640003f6a3f1b129ac6a046f3498ce037921ebac1adf267e55d')
15 build() {
16   cd Intel-Linux-Processor-Microcode-Data-Files-microcode-${pkgver/./}
18   rm -f intel-ucode{,-with-caveats}/list
19   mkdir -p kernel/x86/microcode
20   iucode_tool --write-earlyfw=intel-ucode.img intel-ucode{,-with-caveats}/
23 package() {
24   cd Intel-Linux-Processor-Microcode-Data-Files-microcode-${pkgver/./}
26   install -D -m0644 intel-ucode.img "${pkgdir}"/boot/intel-ucode.img
27   install -D -m0644 license "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE