Invalid PKGBUILD
It seems to me that the code in PKGBUILD is wrong. The linux source code is downloaded as tgz and then you apply on it git patch using git apply. You are not allowed to do so, and doing so lead to unapplied patch without throwing error. So lots of the patches are not applied.
You have 2 ways to solve this issue:
- use patch -Np1 -i patchname.patch instead of git apply (like you did with some patches). But in this case you will have to deal with the last binary patch because the patch command doesnt support (yet?) binary patch
- Or you can use git to get the source. git clone --depth 1 --branch v5.4 https://github.com/torvalds/linux.git instead of getting the tgz tarball of linux. You will then have to apply all patches vith git