Custom packages is unsupported.
Also custom package scripts on AUR assumes Arch package levels - this cannot be achieved on Manjaro stable branch - you may need to switch to testing or unstable.
I will repeat what has already been said - rebuild the package.