I figured out a way to do a manual install using TWRP of an old version of UBPorts, then I can use the UBPorts installer on a phone that has UBPorts on it already. So I do not need to try building from source and doing these things. Marked as solved. I put the steps I took in the OnePlus specific forum instead of the general support area.
If on the off chance anybody actually knows how to use this script, I would like to hear about it. Feel free to put the information out there.