abinfo "Arch Linux build procedures - building ucode image ..."
rm -fv "$SRCDIR"/intel-ucode{,-with-caveats}/list
mkdir -pv "$SRCDIR"/kernel/x86/microcode
iucode_tool --write-earlyfw=intel-ucode.img \
    intel-ucode{,-with-caveats}/

abinfo "Installing ucode image and microcode ..."
install -Dvm644 "$SRCDIR"/intel-ucode.img \
    "$PKGDIR"/boot/intel-ucode.img
install -Dvm644 "$SRCDIR"/"$PKGNAME"/* -t \
    "$PKGDIR"/usr/lib/firmware/"$PKGNAME"

abinfo "Deploying license ..."
mkdir -pv "$PKGDIR"/usr/share/doc/"$PKGNAME"
cp -v "$SRCDIR"/license \
    "$PKGDIR"/usr/share/doc/"$PKGNAME"/LICENSE
