I have wrangled my way around and bump the package.
Some advise to upstream:
Avoid keep changing build files at least for LTS. The last transition from CMake to xmake is painful. Now the dependencies have moved out of mogan source code and I have to use xmake add_patches() feature to port to as low as Android 7.
Please at least consider the existence of pkgconfig:: which will be useful for custom OS.
This post is to solve issues of Termux packaging.
v1.2.5.1: https://github.com/termux/termux-packages/issues/19608
Currently, there is an issue to solve there.