summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authornl67202017-10-01 16:55:31 +0300
committernl67202017-10-01 16:55:31 +0300
commit43ffaa0dfcd39e701b33d0a698ffefb485e019df (patch)
treece94e7de54296bb2659f50e9ed861c38dfd7a6cf
parent77a108d6c63e1d3f647c20dd6443d07b519c81d7 (diff)
downloadaur-43ffaa0dfcd39e701b33d0a698ffefb485e019df.tar.gz
13.f0.6-2
Add shim fallback (fbx64.efi) https://raw.githubusercontent.com/rhboot/shim/master/README.fallback
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD18
2 files changed, 13 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 276d824bff24..d94386294ff1 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = shim-signed
pkgdesc = Initial UEFI bootloader that handles chaining to a trusted full bootloader under secure boot environments.
pkgver = 13.f0.6
- pkgrel = 1
+ pkgrel = 2
url = https://apps.fedoraproject.org/packages/shim-signed
arch = x86_64
license = BSD
diff --git a/PKGBUILD b/PKGBUILD
index 5a69f5022952..c929634eb371 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,21 +1,27 @@
# Maintainer: nl6720 <nl6720@gmail.com>
+[[ "$CARCH" == 'x86_64' ]] && _ARCH_SUFFIX='x64'
+
pkgname='shim-signed'
pkgver='13.f0.6'
-pkgrel='1'
+pkgrel='2'
pkgdesc='Initial UEFI bootloader that handles chaining to a trusted full bootloader under secure boot environments.'
url='https://apps.fedoraproject.org/packages/shim-signed'
arch=('x86_64')
license=('BSD')
options=('!strip')
-source=("https://kojipkgs.fedoraproject.org/packages/${pkgname}/${pkgver//.f/\/}/${CARCH}/shim-${CARCH//86_/}-${pkgver//.f/-}.${CARCH}.rpm")
+source=("https://kojipkgs.fedoraproject.org/packages/${pkgname}/${pkgver//.f/\/}/${CARCH}/shim-${_ARCH_SUFFIX}-${pkgver//.f/-}.${CARCH}.rpm")
sha512sums=('b7ad948793db8c466e7f923ccaa56969509995ee3389c8aa6d1d2e8a30b4bd9aae393c36e107421af44aa3a4cab7fe560517bccee6d5484dad6dd0c2b6d11c37')
package() {
- install -D -m0644 "${srcdir}/boot/efi/EFI/fedora/shimx64.efi" "${pkgdir}/usr/share/${pkgname}/shimx64.efi"
- install -D -m0644 "${srcdir}/boot/efi/EFI/fedora/mmx64.efi" "${pkgdir}/usr/share/${pkgname}/mmx64.efi"
+ install -D -m0644 "${srcdir}/boot/efi/EFI/fedora/shim${_ARCH_SUFFIX}.efi" "${pkgdir}/usr/share/${pkgname}/shim${_ARCH_SUFFIX}.efi"
+ install -D -m0644 "${srcdir}/boot/efi/EFI/fedora/mm${_ARCH_SUFFIX}.efi" "${pkgdir}/usr/share/${pkgname}/mm${_ARCH_SUFFIX}.efi"
+ install -D -m0644 "${srcdir}/boot/efi/EFI/BOOT/fb${_ARCH_SUFFIX}.efi" "${pkgdir}/usr/share/${pkgname}/fb${_ARCH_SUFFIX}.efi"
+
+ # Symlink old filenames
+ ln -s "shim${_ARCH_SUFFIX}.efi" "${pkgdir}/usr/share/${pkgname}/shim.efi"
+ ln -s "mm${_ARCH_SUFFIX}.efi" "${pkgdir}/usr/share/${pkgname}/MokManager.efi"
+ ln -s "fb${_ARCH_SUFFIX}.efi" "${pkgdir}/usr/share/${pkgname}/fallback.efi"
- ln -s 'shimx64.efi' "${pkgdir}/usr/share/${pkgname}/shim.efi"
- ln -s 'mmx64.efi' "${pkgdir}/usr/share/${pkgname}/MokManager.efi"
}