2023-08-13 10:40:09 +02:00
|
|
|
# Description: Just-In-Time Compiler for the Lua programming language
|
2023-09-15 17:34:46 +02:00
|
|
|
# URL: https://luajit.org
|
2023-08-13 10:40:09 +02:00
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
2019-03-07 17:12:48 +11:00
|
|
|
|
|
|
|
name=luajit
|
2023-08-13 10:40:09 +02:00
|
|
|
# https://github.com/LuaJIT/LuaJIT/issues/665#issuecomment-784452583
|
2023-09-15 17:34:46 +02:00
|
|
|
_commit=4611e25c0fbe911486cccae4556eb086c0254c5f
|
|
|
|
version=2.1.0-1694285958
|
2019-03-07 17:12:48 +11:00
|
|
|
release=1
|
2023-09-15 17:34:46 +02:00
|
|
|
source=(https://github.com/LuaJIT/LuaJIT/archive/$_commit/$name-$_commit.tar.gz)
|
2019-03-07 17:12:48 +11:00
|
|
|
|
|
|
|
build() {
|
2023-08-13 10:40:09 +02:00
|
|
|
cd LuaJIT-$_commit
|
2019-03-07 17:12:48 +11:00
|
|
|
|
2023-08-13 10:40:09 +02:00
|
|
|
sed -i 's/%{_libexecdir}/%{_libdir}/' etc/luajit.pc
|
2019-03-07 17:12:48 +11:00
|
|
|
|
2023-08-13 10:40:09 +02:00
|
|
|
make PREFIX="/usr" \
|
|
|
|
MULTILIB="/usr/lib" \
|
2023-09-15 17:34:46 +02:00
|
|
|
BUILDMODE=dynamic \
|
|
|
|
TARGET_STRIP=" @:" \
|
2023-08-13 10:40:09 +02:00
|
|
|
amalg
|
|
|
|
make PREFIX=/usr DESTDIR=$PKG install
|
|
|
|
|
|
|
|
find $PKG -type f -name *.a -delete -print
|
2019-03-07 17:12:48 +11:00
|
|
|
}
|