[arch-commits] Commit in shim/repos (2 files)

Jonas Witschel diabonas at archlinux.org
Tue Mar 23 19:46:15 UTC 2021


    Date: Tuesday, March 23, 2021 @ 19:46:15
  Author: diabonas
Revision: 901340

archrelease: copy trunk to community-testing-any

Added:
  shim/repos/community-testing-any/
  shim/repos/community-testing-any/PKGBUILD
    (from rev 901339, shim/trunk/PKGBUILD)

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

Copied: shim/repos/community-testing-any/PKGBUILD (from rev 901339, shim/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2021-03-23 19:46:15 UTC (rev 901340)
@@ -0,0 +1,45 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+pkgname=shim
+pkgver=15.3
+pkgrel=1
+pkgdesc="EFI preloader (unsigned EFI binaries)"
+arch=('any')
+url="https://github.com/rhboot/shim"
+license=('BSD')
+makedepends=('git')
+checkdepends=('xxd')
+source=("git+https://github.com/rhboot/shim#tag=${pkgver}?signed"
+        'rhboot-gnu-efi::git+https://github.com/rhboot/gnu-efi.git')
+md5sums=('SKIP'
+         'SKIP')
+validpgpkeys=('B00B48BC731AA8840FED9FB0EED266B70F4FEF10') # Peter Jones <pjones at redhat.com>
+
+prepare() {
+  cd "$pkgname"
+  git submodule init
+  git config submodule.gnu-efi.url "$srcdir/rhboot-gnu-efi"
+  git submodule update
+  # -Werror, not even once
+  sed -e 's/-Werror //g' -i Makefile Make.defaults
+}
+
+build() {
+  cd "$pkgname"
+  # TODO: evaluate setting DEFAULT_LOADER to e.g. loader.efi:
+  # this would require changing grub's default, but would allow us to unify
+  make EFIDIR='ARCH'
+}
+
+check() {
+  cd "$pkgname"
+  make test
+}
+
+package() {
+  cd "$pkgname"
+  make DATATARGETDIR="/usr/share/${pkgname}" DESTDIR="$pkgdir/" install-as-data
+  install -vDm 644 COPYRIGHT -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -vDm 644 {BUILDING,README.{md,fallback,tpm},TODO} \
+    -t "${pkgdir}/usr/share/doc/${pkgname}"
+}



More information about the arch-commits mailing list