diff -uNr LuaJIT-2.1.0-beta3/etc/luajit.pc LuaJIT-2.1.0-beta3.mod/etc/luajit.pc
--- LuaJIT-2.1.0-beta3/etc/luajit.pc	2017-05-01 22:03:01.000000000 +0300
+++ LuaJIT-2.1.0-beta3.mod/etc/luajit.pc	2019-07-01 17:40:16.877257398 +0300
@@ -5,7 +5,7 @@
 version=${majver}.${minver}.${relver}-beta3
 abiver=5.1
 
-prefix=/usr/local
+prefix=@TERMUX_PREFIX@
 multilib=lib
 exec_prefix=${prefix}
 libdir=${exec_prefix}/${multilib}
