You're probably best off using the preset and have it create an installable package, even if you don't use it (or you could just modify
utils/build-presets.ini to not create an installable package for that preset, as Ben said).
If you really want to customize your build, your long command above can be minimized down to:
Note that I added
--install-xctest as Ben mentioned, without which you won't be able to build SwiftPM. All the
--skip-test-* flags shouldn't be needed as those aren't built or tested by default. Foundation and libdispatch are implicitly built if XCTest is built.
As I mentioned in your other thread, this install will likely overwrite any libicu, lldb, clang, etc. packages you already have installed in
/usr, so you may not want to override destdir if that's the case.