[arch-commits] Commit in shim/repos (community-x86_64 community-x86_64/PKGBUILD)

David Runge dvzrv at archlinux.org
Sun Sep 27 19:37:00 UTC 2020


    Date: Sunday, September 27, 2020 @ 19:37:00
  Author: dvzrv
Revision: 712761

archrelease: copy trunk to community-x86_64

Added:
  shim/repos/community-x86_64/
  shim/repos/community-x86_64/PKGBUILD
    (from rev 712760, shim/trunk/PKGBUILD)

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

Copied: shim/repos/community-x86_64/PKGBUILD (from rev 712760, shim/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2020-09-27 19:37:00 UTC (rev 712761)
@@ -0,0 +1,34 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+pkgname=shim
+pkgver=15
+pkgrel=4
+pkgdesc="EFI preloader"
+arch=('x86_64')
+url="https://github.com/rhboot/shim"
+license=('BSD')
+makedepends=('git' 'gnu-efi')
+source=("git+https://github.com/rhboot/shim#tag=${pkgver}?signed")
+md5sums=('SKIP')
+validpgpkeys=('B00B48BC731AA8840FED9FB0EED266B70F4FEF10') # Peter Jones <pjones at redhat.com>
+
+prepare() {
+  cd "$pkgname"
+  # -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 EFI_PATH='/usr/lib/' EFIDIR='ARCH' ENABLE_HTTPBOOT='1'
+}
+
+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,README.{fallback,tpm},TODO} \
+    -t "${pkgdir}/usr/share/doc/${pkgname}"
+}



More information about the arch-commits mailing list