forked from q66/cffi-lua
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcffi-lua-0.2.3-1.rockspec
More file actions
42 lines (41 loc) · 1.26 KB
/
cffi-lua-0.2.3-1.rockspec
File metadata and controls
42 lines (41 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package = "cffi-lua"
version = "0.2.3-1"
source = {
url = "git+https://github.com/q66/cffi-lua",
tag = "v0.2.3"
}
description = {
summary = "A portable C FFI for Lua 5.1+",
detailed = [[
This is a portable C FFI for Lua, based on libffi. It aims to be
mostly compatible with the LuaJIT FFI, but written from scratch
and compatible with different systems and CPU architectures.
It doesn't aim to provide strictly only what LuaJIT FFI provides;
there is also support for features from newer Lua versions as well
as various other extensions, both in its API and in its language
support.
]],
homepage = "https://github.com/q66/cffi-lua",
license = "MIT"
}
dependencies = {
"lua >= 5.1"
}
external_dependencies = {
MESON = { program = "meson" },
}
build = {
type = "command",
build_command = [[\
LUA="$(LUA)" CC="$(CC)" LD="$(LD)" \
CFLAGS='$(CFLAGS) -I$(LUA_INCDIR)' \
PREFIX="$(PREFIX)" LIBDIR="$(LIBDIR)" \
sh ./luarocks/build.sh build
]],
install_command = [[\
LUA="$(LUA)" CC="$(CC)" LD="$(LD)" \
CFLAGS='$(CFLAGS) -I$(LUA_INCDIR)' \
PREFIX="$(PREFIX)" LIBDIR="$(LIBDIR)" \
sh ./luarocks/build.sh install
]],
}