contrib/luajit/Pkgfile

26 lines
678 B
Plaintext
Raw Normal View History

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