Just wanted to share.
After a lot of work I managed to install torch7 from source. I did this by installing termux-arch from the termux android app. Then installing ”base-devel” with pacman.
You get the source from torch.ch for luajit. You have to look in the install script for dependencies.
Ran some tests and much seems to be working. Pretty nice.