diff options
author | Alexander M Pickering <alex@cogarr.net> | 2024-08-13 16:19:14 -0500 |
---|---|---|
committer | Alexander M Pickering <alex@cogarr.net> | 2024-08-13 16:19:14 -0500 |
commit | e4f4ce98515f4c47a194061df29cb9087b561caf (patch) | |
tree | ae3088f450de3853bbee9448bb87a9c8921b5bb2 /init | |
parent | b47e7d622e0017a6bfbd5e74d99bf4407c1a003f (diff) | |
download | image-luarocks-e4f4ce98515f4c47a194061df29cb9087b561caf.tar.gz image-luarocks-e4f4ce98515f4c47a194061df29cb9087b561caf.tar.bz2 image-luarocks-e4f4ce98515f4c47a194061df29cb9087b561caf.zip |
Generate some luarocks images
Diffstat (limited to 'init')
-rwxr-xr-x | init | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -1 +1,19 @@ | |||
1 | #!/bin/sh -ex | 1 | #!/bin/sh -ex |
2 | |||
3 | rc-service networking start | ||
4 | |||
5 | apk add luarocks$maj.$min zip | ||
6 | ln -s /usr/bin/luarocks-$maj.$min /usr/local/bin/luarocks | ||
7 | ln -s /root/lua$maj$min.dll /root/liblua.dll | ||
8 | |||
9 | luaver=$(ls lua-*.tar.gz | grep -Eo "lua-.\\..") | ||
10 | mkdir "$luaver" | ||
11 | tar -xvzf lua-*.tar.gz --directory="$luaver" --strip-components=1 | ||
12 | rm /root/$luaver/src/*.c | ||
13 | rm -rf /root/$luaver/doc | ||
14 | rm -rf /root/$luaver/test | ||
15 | rm -rf /root/$luaver/etc | ||
16 | rm /root/*.tar.gz | ||
17 | rm -rf /root/image-mingw64 | ||
18 | luarocks config arch $arch | ||
19 | luarocks config link_lua_explicitly true | ||