I have a .diff file which I use to patch unity source code and then recompile it, so I can remove trash icon from unity panel which is important to me. However after every update of Unity, the patched version is obviously updated with the newer version from ubuntu repos.
My question is if it is possible to have a script run after every update of Unity which does the following:
1) Downloads newest source code from repos
2) Applies patch
3) Compiles the source
4) Installs the package
The script is easy to write, but my question is how to have the script run after every update of unity package?
I know there is something like DKMS for kernel, so patches to kernel are applied after every update. Is something like that possible for normal package, like Unity?