Patches and sed command are directly from Arch Linux. We just need to steal from it whenever they are changed.