This reverts commits which updated texliv-bin. The newer version requires some new dependencies which aren't available at the moment. `texlive-bin` should be updated as soon as those dependencies are available
Patches and sed command are directly from Arch Linux. We just need to steal from it whenever they are changed.