@skalimoi While producing the CRUX image ( CRUX for DevTerm A06, dev notes ), I had to write a small build script for all of those files. I did it as one large package instead of several small ones: git.debu.gs Git - cpi-ports/blob - devterm-a06/Pkgfile .
It is technically for the A06, but it should be almost the same for the CM4. You’ll have to change a few pieces (you can skip the wiringPi section, which is huge, because the CM4 has that upstream and the gearbox) and tweak the fan part. I think, though, that this is basically all the pieces you need, and CRUX and Arch are closely related enough that it might translate almost directly into an AUR PKGBUILD
file.