Commit 25f1425
authored
feat: add lua 5.4.7 (C library) (#4)
* feat: add lua 5.4.7 (C library)
Pure-C scripting library; relies on mcpp's C compile rule. Form B
descriptor enumerates the 32 library translation units (CORE_O +
LIB_O from upstream's src/Makefile) into a single `liblua.a`
static archive. The two binary entry points (src/lua.c interpreter,
src/luac.c bytecode compiler) are intentionally excluded — both
define `int main()` and aren't part of the embeddable library.
Tarball: https://www.lua.org/ftp/lua-5.4.7.tar.gz
SHA256: 9fbf5e28ef86c69858f6d3d34eccc32e911c1a28b4120ff3e84aaa70cfbf1e30
Verified end-to-end with a small consumer that calls lua_State /
luaL_openlibs / luaL_dostring("return 1+2") — outputs "3", links
clean against liblua.a, no main() collision.
* fix(ci): rewrite the package-descriptor lint
The previous check insisted on `schema = "0.1"` and an inline
`mcpp = { ... }` segment. Both are wrong for the actual xpkg V1
schema we use:
- xpkg V1 names the version field `spec`, not `schema`. (None of the
existing descriptors in this repo carry `schema = "0.1"`, so this
check would have flagged every file the moment any pkgs/ change
triggered the workflow.)
- The inline `mcpp = {}` segment is Form B only; Form A descriptors
(mcpplibs.tinyhttps, mcpplibs.llmapi after their upstream started
shipping mcpp.toml) intentionally omit it.
Replace both with the actual xpkg V1 baseline:
- `package = { ... }` assignment present (via syntax-only `loadfile`
parse — catches typos without executing user code)
- required fields: `spec`, `name`, `xpm`
- still flag the forbidden `function install(...)` hook
Adds a `lua5.4` install step so the syntax check has an interpreter.1 parent 160c504 commit 25f1425
2 files changed
Lines changed: 104 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
| 20 | + | |
18 | 21 | | |
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
30 | 41 | | |
31 | 42 | | |
32 | 43 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 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 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
0 commit comments