A few small fixes for successful build of 7.1.0-10
I had the same issue as your most recent build, and found two lines where your PKGBUILD was different from the arch version. Changing these allowed for a successful build.
line 546: _pick qemu-user-static-binfmt usr/lib/binfmt.d/*-static.conf
line 549: _pick qemu-user-binfmt usr/lib/binfmt.d/*.conf
Also, FYI - the arch pkgrel version 10 added a couple of patches yesterday. Should be just a matter of copying lines 109-10 from the arch version to after your current line 45 and their lines 242-4 to just after your current line 55.