First, let's get started with what this isn't. It is NOT a Linux port, and likely never will be (at least, not fully)
What is it then? It is a modified version of the 11.2 kext_tools to build under a Linux-based environment.
Well, what do you get when you slim a binary down so much, it has minimal deps?
A binary usable under a translation layer! Darling is one way.
Since I need to build this under a Linux host, things get a bit tricky...
You'll need a few things:
osxcross, targeting SDK 11.3
zlib, built for OSX11.2, using the same command below to configure it. Install the library manually, or build llvm with the right command yourself
A lot of patience
This is the build command I used. It's a bit hacky, but it gets the job done:
xcrun cmake -DCMAKE_OSX_DEPLOYMENT_TARGET=11.2 -DCMAKE_PREFIX_PATH=" $( xcrun --sdk macosx --show-sdk-path) /usr" -DCMAKE_LINKER=" $( xcrun --find ld) " -B build
Huge thanks to a lot of people in the PureDarwin server
Huge thanks to Zormeister