Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/efifs
diff options
context:
space:
mode:
authorTasos Sahanidis <tasos@tasossah.com>2024-08-28 22:21:13 +0300
committerTasos Sahanidis <tasos@tasossah.com>2024-08-28 22:21:44 +0300
commit0ed7250e1e35c94372aeeef01a376699bd235b37 (patch)
treeea6e2c3d3921ebdea93e92b966a0f3b4bc077ae8 /extra/efifs
parenta8b0b413a17816853baa51ca0b1e8a80ad109399 (diff)
extra/efifs: Bad hacks
Diffstat (limited to 'extra/efifs')
-rw-r--r--extra/efifs/PKGBUILD7
1 files changed, 7 insertions, 0 deletions
diff --git a/extra/efifs/PKGBUILD b/extra/efifs/PKGBUILD
new file mode 100644
index 00000000..3b2cb869
--- /dev/null
+++ b/extra/efifs/PKGBUILD
@@ -0,0 +1,7 @@
+# Does w32-mingw32-gcc exist? I thought it was w64.
+eval "$(declare -f prepare | sed 's@^}$@sed -i "s/MINGW_HOST = w32/MINGW_HOST = w64/" EfiFs/Make.common EfiFs-ia32/Make.common; }@')"
+
+# I can't figure this out, so bodge it instead
+# error adding symbols: Archive has no index; run ranlib to add one
+# Adding "s" to the ar command doesn't do it either
+eval "$(declare -f build | sed "s@make -C EfiFs-ia32 ARCH='ia32'@make -C EfiFs-ia32 ARCH='ia32' || true; i686-w64-mingw32-ranlib EfiFs-ia32/grub/libgrub.a; make -C EfiFs-ia32 ARCH='ia32'@")"