Hi.
Sorry, no. This shell script (if you study it) is actually intended for Enigma only.
If you modify it, you can also use it for a standard Linux system. However, you must have compiled Python code (.py to .pyo files) and you must also have some localization compiler present, ar archiver, 7zip archiver, ... etc. . I also use the "opkg" package manager, but Ubuntu system uses primarily another package manager. I think: apt, aptitude, dpkg, ... . However, there is more that would need to be modified for Ubuntu use. Why don't you make your own shell script for Ubuntu ? Just know the format of .deb and .ipk packages or study the creation process in my shell-script :-P.
For example:
https://en.wikipedia.org/wiki/Deb_(file_format)
https://linux-tips.com/t/how-to-extract-deb-package/169