To install Metasploit on Termux type below commands :
====================
apt-get install git
git clone https://github.com/verluchie/termux-metasploit
cd termux-metasploit
chmod 777 install.sh
And Then Install it
sh install.sh
====================
After installed run from your terminal
msfconsole
====================
After this installation type msfconsole to run Metasploit