libluajit: fix unmatched header path and package version (#4815)

* libluajit: fix unmatched header path and package version

Currently, luajit header files are placed improperly.
As stated at luajit.pc file, package version is 2.1 and pkg-config
guides the header location to $TERMUX_PREFIX/include/luajit-2.1/.

This commit fixes the build script of wrong header path.

* libluajit: bump revision and use $TERMUX_PKG_VERSION for foldername

Co-authored-by: Henrik Grimler <henrik@grimler.se>
This commit is contained in:
Daniel T. Lee 2020-01-20 10:31:33 +00:00 committed by Henrik Grimler
parent d5ff182f95
commit 9db7ae6906

View File

@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="Just-In-Time Compiler for Lua"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com"
TERMUX_PKG_VERSION=2.1.0~beta3
TERMUX_PKG_REVISION=3
TERMUX_PKG_REVISION=4
TERMUX_PKG_SRCURL=https://github.com/LuaJIT/LuaJIT/archive/v2.1.0-beta3.tar.gz
TERMUX_PKG_SHA256=409f7fe570d3c16558e594421c47bdd130238323c9d6fd6c83dedd2aaeb082a8
TERMUX_PKG_BREAKS="libluajit-dev"
@ -30,8 +30,8 @@ termux_step_pre_configure() {
}
termux_step_make_install () {
mkdir -p $TERMUX_PREFIX/include/luajit-2.0/
cp -f $TERMUX_PKG_SRCDIR/src/{lauxlib.h,lua.h,lua.hpp,luaconf.h,luajit.h,lualib.h} $TERMUX_PREFIX/include/luajit-2.0/
mkdir -p $TERMUX_PREFIX/include/luajit-${TERMUX_PKG_VERSION:0:3}/
cp -f $TERMUX_PKG_SRCDIR/src/{lauxlib.h,lua.h,lua.hpp,luaconf.h,luajit.h,lualib.h} $TERMUX_PREFIX/include/luajit-${TERMUX_PKG_VERSION:0:3}/
rm -f $TERMUX_PREFIX/lib/libluajit*
install -Dm600 $TERMUX_PKG_SRCDIR/src/libluajit.so $TERMUX_PREFIX/lib/libluajit-5.1.so