Date: Thursday, October 14, 2021 @ 10:19:38 Author: tpowa Revision: 425884
archrelease: copy trunk to extra-any Added: archboot-grub/repos/extra-any/ archboot-grub/repos/extra-any/PKGBUILD (from rev 425883, archboot-grub/trunk/PKGBUILD) ----------+ PKGBUILD | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) Copied: archboot-grub/repos/extra-any/PKGBUILD (from rev 425883, archboot-grub/trunk/PKGBUILD) =================================================================== --- extra-any/PKGBUILD (rev 0) +++ extra-any/PKGBUILD 2021-10-14 10:19:38 UTC (rev 425884) @@ -0,0 +1,29 @@ +# Maintainer: Tobias Powalowski <tp...@archlinux.org> + +pkgname=archboot-grub +pkgver=2.06 +pkgrel=1 +pkgdesc="grubx64.efi and grubia32.efi for archboot creation" +url="https://wiki.archlinux.org/title/Archboot" +license=('GPL') +arch=('any') +makedepends=('grub') +options=(!strip) + +package() { + mkdir -p "${pkgdir}/usr/share/archboot/grub" + # create Arch Linux sbat file + # add sbat file: https://bugs.archlinux.org/task/72415 + echo "sbat,1,SBAT Version,sbat,1,https://github.com/rhboot/shim/blob/main/SBAT.md" > ${srcdir}/sbat.csv + echo "grub,1,Free Software Foundation,grub,2.06,https//www.gnu.org/software/grub/" >> ${srcdir}/sbat.csv + echo "arch,1,Arch Linux,\$pkgname,\$pkgver,https://archlinux.org/packages/core/x86_64/grub/" >> ${srcdir}/sbat.csv + ### Hint: https://src.fedoraproject.org/rpms/grub2/blob/rawhide/f/grub.macros#_407 + _GRUB_MODULES="all_video boot btrfs cat configfile cryptodisk echo efi_gop efi_uga efifwsetup efinet ext2 f2fs fat font gcry_rijndael gcry_rsa gcry_serpent gcry_sha256 gcry_twofish gcry_whirlpool gfxmenu gfxterm gzio halt hfsplus http iso9660 loadenv loopback linux lvm lsefi lsefimmap luks luks2 mdraid09 mdraid1x minicmd net normal part_apple part_msdos part_gpt password_pbkdf2 pgp png reboot regexp search search_fs_uuid search_fs_file search_label serial sleep syslinuxcfg test tftp video xfs zstd backtrace chain tpm usb usbserial_common usbserial_pl2303 usbserial_ftdi usbserial_usbdebug keylayouts at_keyboard" + # add -v for verbose + _COMMON_GRUB_OPTIONS="--sbat ${srcdir}/sbat.csv --modules="${_GRUB_MODULES}" --fonts="unicode" --locales="en@quot" --themes=""" + echo 'configfile ${cmdpath}/grubx64.cfg' > ${srcdir}/grubx64.cfg + grub-mkstandalone -d /usr/lib/grub/x86_64-efi -O x86_64-efi ${_COMMON_GRUB_OPTIONS} -o "${pkgdir}/usr/share/archboot/grub/grubx64.efi" "boot/grub/grub.cfg=${srcdir}/grubx64.cfg" + echo 'configfile ${cmdpath}/bootia32.cfg' > ${srcdir}/bootia32.cfg + grub-mkstandalone -d /usr/lib/grub/i386-efi -O i386-efi ${_COMMON_GRUB_OPTIONS} -o "${pkgdir}/usr/share/archboot/grub/grubia32.efi" "boot/grub/grub.cfg=${X86_64}/bootia32.cfg" +} +# vim:set sw=2 et: