2022-11-22 18:42:44 +03:00
|
|
|
distributable:
|
|
|
|
url: http://www.lua.org/ftp/lua-{{version}}.tar.gz
|
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
versions:
|
2023-05-01 20:14:59 +03:00
|
|
|
url: http://www.lua.org/ftp/
|
|
|
|
match: /lua-(\d+\.\d+\.\d+)\.tar\.gz/
|
|
|
|
strip:
|
|
|
|
- /lua-/
|
|
|
|
- /.tar.gz/
|
2022-11-22 18:42:44 +03:00
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/lua
|
|
|
|
- bin/luac
|
2022-11-30 21:29:52 +03:00
|
|
|
|
2024-07-01 17:58:04 +03:00
|
|
|
companions:
|
|
|
|
luarocks.org: '*'
|
|
|
|
|
|
|
|
runtime:
|
|
|
|
env:
|
|
|
|
LUA_PATH: $LUA_PATH;{{prefix}}/share/lua/{{version.marketing}}/?.lua;{{prefix}}/share/lua/{{version.marketing}}/?/init.lua;{{prefix}}/lib/lua/{{version.marketing}}/?.lua;{{prefix}}/lib/lua/{{version.marketing}}/?/init.lua
|
|
|
|
LUA_CPATH: $LUA_CPATH;{{prefix}}/lib/lua/{{version.marketing}}/?.so;{{prefix}}/lib/lua/{{version.marketing}}/loadall.so
|
|
|
|
|
2022-11-30 21:29:52 +03:00
|
|
|
interprets:
|
|
|
|
extensions: lua
|
|
|
|
args: lua
|
2022-12-01 20:25:57 +03:00
|
|
|
|
2022-11-22 18:42:44 +03:00
|
|
|
build:
|
|
|
|
script: |
|
|
|
|
make all INSTALL_TOP={{prefix}}
|
|
|
|
make install INSTALL_TOP={{prefix}}
|
|
|
|
make test
|
|
|
|
|
|
|
|
test:
|
|
|
|
script: |
|
|
|
|
lua -v
|
2022-12-01 20:25:57 +03:00
|
|
|
lua -e 'print("Hello World!")'
|