mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
4ef8940db3
closes #6568 thanks, @magnusviri!
38 lines
864 B
YAML
38 lines
864 B
YAML
distributable:
|
|
url: http://www.lua.org/ftp/lua-{{version}}.tar.gz
|
|
strip-components: 1
|
|
|
|
versions:
|
|
url: http://www.lua.org/ftp/
|
|
match: /lua-(\d+\.\d+\.\d+)\.tar\.gz/
|
|
strip:
|
|
- /lua-/
|
|
- /.tar.gz/
|
|
|
|
provides:
|
|
- bin/lua
|
|
- bin/luac
|
|
|
|
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
|
|
|
|
interprets:
|
|
extensions: lua
|
|
args: lua
|
|
|
|
build:
|
|
script: |
|
|
make all INSTALL_TOP={{prefix}}
|
|
make install INSTALL_TOP={{prefix}}
|
|
make test
|
|
|
|
test:
|
|
script: |
|
|
lua -v
|
|
lua -e 'print("Hello World!")'
|