[arch-commits] Commit in (efifs efifs/repos efifs/trunk efifs/trunk/PKGBUILD)

Daniel Bermond dbermond at gemini.archlinux.org
Mon Dec 6 20:15:31 UTC 2021


    Date: Monday, December 6, 2021 @ 20:15:31
  Author: dbermond
Revision: 1065367

Initial commit of efifs

Added:
  efifs/
  efifs/repos/
  efifs/trunk/
  efifs/trunk/PKGBUILD

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

Added: efifs/trunk/PKGBUILD
===================================================================
--- efifs/trunk/PKGBUILD	                        (rev 0)
+++ efifs/trunk/PKGBUILD	2021-12-06 20:15:31 UTC (rev 1065367)
@@ -0,0 +1,52 @@
+# Maintainer: Daniel Bermond <dbermond at archlinux.org>
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+
+pkgname=efifs
+pkgver=1.8
+pkgrel=3
+_commit=6de1473f8cf9ee5120f84f3c1fc61abb5b01d4bb
+pkgdesc='Standalone EFI file system drivers'
+arch=('any')
+url='https://efi.akeo.ie/'
+license=('GPL3')
+makedepends=('git' 'mingw-w64-gcc' 'arm-none-eabi-gcc' 'arm-none-eabi-newlib'
+             'aarch64-linux-gnu-gcc' 'riscv64-linux-gnu-gcc')
+source=("git+https://github.com/pbatard/efifs.git#commit=${_commit}?signed"
+        'git+https://git.savannah.gnu.org/git/grub.git'
+        'gnu-efi'::'git+https://git.code.sf.net/p/gnu-efi/code')
+sha256sums=('SKIP'
+            'SKIP'
+            'SKIP')
+validpgpkeys=('E7CDF2A016DDDD53F0B7943838E0CF5E69EDD671') # Pete Batard <pete at akeo.ie>
+
+prepare() {
+    git -C efifs submodule init
+    git -C efifs config --local submodule.grub.url "${srcdir}/grub"
+    git -C efifs config --local submodule.gnu-efi.url "${srcdir}/gnu-efi"
+    git -C efifs submodule update
+    
+    patch -d efifs/grub -Np1 -i "${srcdir}/efifs/0001-GRUB-fixes.patch"
+    
+    cp -af efifs{,-ia32}
+    cp -af efifs{,-arm}
+    cp -af efifs{,-aa64}
+    cp -af efifs{,-riscv64}
+}
+
+build() {
+    unset -v CFLAGS
+    unset -v MAKEFLAGS
+    make -C efifs ARCH='x64'
+    make -C efifs-ia32 ARCH='ia32'
+    make -C efifs-arm ARCH='arm' CROSS_COMPILE='arm-none-eabi-'
+    make -C efifs-aa64 ARCH='aa64' CROSS_COMPILE='aarch64-linux-gnu-'
+    make -C efifs-riscv64 ARCH='riscv64' CROSS_COMPILE='riscv64-linux-gnu-'
+}
+
+package() {
+    install -D -m644 efifs/src/*.efi -t "${pkgdir}/usr/lib/efifs-x64"
+    install -D -m644 efifs-ia32/src/*.efi -t "${pkgdir}/usr/lib/efifs-ia32"
+    install -D -m644 efifs-arm/src/*.efi -t "${pkgdir}/usr/lib/efifs-arm"
+    install -D -m644 efifs-aa64/src/*.efi -t "${pkgdir}/usr/lib/efifs-aa64"
+    install -D -m644 efifs-riscv64/src/*.efi -t "${pkgdir}/usr/lib/efifs-riscv64"
+}



More information about the arch-commits mailing list