summaryrefslogtreecommitdiff
path: root/prepare
diff options
context:
space:
mode:
Diffstat (limited to 'prepare')
-rw-r--r--prepare9
1 files changed, 9 insertions, 0 deletions
diff --git a/prepare b/prepare
new file mode 100644
index 0000000..73e85b6
--- /dev/null
+++ b/prepare
@@ -0,0 +1,9 @@
1#!/bin/sh -ex
2
3apk add luarocks$rocks_ver
4luaver=$(ls lua-*.tar.gz | grep -Eo "lua-.\\..")
5mkdir "$luaver"
6tar -xvzf lua-*.tar.gz --directory="$luaver" --strip-components=1
7rm "/root/$luaver/src/*.c"
8luarocks-$rocks_ver config variables.LUA_INCDIR "/root/$luaver/src"
9luarocks-$rocks_ver config variables.CFLAGS "$CFLAGS"