]> git.ipfire.org Git - people/pmueller/ipfire-3.x.git/blob - luajit/luajit.nm
util-linux: Fix typo in libfdisk-devel package name
[people/pmueller/ipfire-3.x.git] / luajit / luajit.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = luajit
7 version = 2.1.0
8 release = 0.2-beta3-%{commit}
9 thisapp = luajit-2.0-%{commit}
10
11 # LuaJIT no longer tags releases:
12 # https://github.com/LuaJIT/LuaJIT/issues/665#issuecomment-784452583
13 commit = a04480e
14
15 groups = System/Libraries
16 url = https://luajit.org/
17 license = MIT
18 summary = A Just-In-Time Compiler for Lua
19
20 description
21 LuaJIT is a Just-In-Time Compiler (JIT) for the Lua programming language.
22 Lua is a powerful, dynamic and light-weight programming language.
23 It may be embedded or used as a general-purpose, stand-alone language.
24 end
25
26 source_dl = https://repo.or.cz/luajit-2.0.git/snapshot/
27 sources = %{commit}.tar.gz
28
29 build
30 prepare_cmds
31 # Do not disable stack protection
32 sed -e "s/-fno-stack-protector//" -i src/Makefile
33 end
34
35 build
36 make amalg PREFIX="%{prefix}" BUILDMODE=dynamic Q= TARGET_STRIP=" @:" \
37 CFLAGS="%{CFLAGS}" LDFLAGS="%{LDFLAGS}" %{PARALLELISMFLAGS}
38 end
39
40 install
41 make install \
42 DESTDIR="%{BUILDROOT}" \
43 PREFIX="%{prefix}" \
44 INSTALL_BIN="%{BUILDROOT}%{bindir}" \
45 INSTALL_LIB="%{BUILDROOT}%{libdir}" \
46 INSTALL_SHARE="%{BUILDROOT}%{datadir}" \
47 INSTALL_DEFINC="%{BUILDROOT}%{includedir}/luajit-2.1"
48
49 ln -svf luajit-2.1.0-beta3 "%{BUILDROOT}%{bindir}/luajit"
50 end
51 end
52
53 packages
54 package %{name}
55
56 package %{name}-devel
57 template DEVEL
58 end
59
60 package %{name}-debuginfo
61 template DEBUGINFO
62 end
63 end