summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorAlexander M Pickering <alex@cogarr.net>2024-08-13 16:19:14 -0500
committerAlexander M Pickering <alex@cogarr.net>2024-08-13 16:19:14 -0500
commite4f4ce98515f4c47a194061df29cb9087b561caf (patch)
treeae3088f450de3853bbee9448bb87a9c8921b5bb2 /init
parentb47e7d622e0017a6bfbd5e74d99bf4407c1a003f (diff)
downloadimage-luarocks-e4f4ce98515f4c47a194061df29cb9087b561caf.tar.gz
image-luarocks-e4f4ce98515f4c47a194061df29cb9087b561caf.tar.bz2
image-luarocks-e4f4ce98515f4c47a194061df29cb9087b561caf.zip
Generate some luarocks images
Diffstat (limited to 'init')
-rwxr-xr-xinit18
1 files changed, 18 insertions, 0 deletions
diff --git a/init b/init
index 642d265..451c299 100755
--- a/init
+++ b/init
@@ -1 +1,19 @@
1#!/bin/sh -ex 1#!/bin/sh -ex
2
3rc-service networking start
4
5apk add luarocks$maj.$min zip
6ln -s /usr/bin/luarocks-$maj.$min /usr/local/bin/luarocks
7ln -s /root/lua$maj$min.dll /root/liblua.dll
8
9luaver=$(ls lua-*.tar.gz | grep -Eo "lua-.\\..")
10mkdir "$luaver"
11tar -xvzf lua-*.tar.gz --directory="$luaver" --strip-components=1
12rm /root/$luaver/src/*.c
13rm -rf /root/$luaver/doc
14rm -rf /root/$luaver/test
15rm -rf /root/$luaver/etc
16rm /root/*.tar.gz
17rm -rf /root/image-mingw64
18luarocks config arch $arch
19luarocks config link_lua_explicitly true