2023-04-22 15:54:41 -07:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -euo pipefail
|
|
|
|
|
2024-05-28 08:39:07 +02:00
|
|
|
apk add --no-cache \
|
|
|
|
lua5.4
|
|
|
|
|
2023-12-29 19:30:58 +01:00
|
|
|
apk add --no-cache --virtual .lua-build-deps \
|
|
|
|
gcc \
|
2024-05-28 08:39:07 +02:00
|
|
|
lua5.4-dev \
|
|
|
|
luarocks5.4 \
|
2023-12-29 19:30:58 +01:00
|
|
|
make \
|
|
|
|
musl-dev \
|
|
|
|
readline-dev
|
|
|
|
|
2024-05-28 08:39:07 +02:00
|
|
|
ln -s /usr/bin/lua5.4 /usr/bin/lua
|
2023-04-22 15:54:41 -07:00
|
|
|
|
2024-05-28 08:39:07 +02:00
|
|
|
luarocks-5.4 install luacheck
|
|
|
|
luarocks-5.4 install argparse
|
|
|
|
luarocks-5.4 install luafilesystem
|
2023-12-29 19:30:58 +01:00
|
|
|
|
|
|
|
apk del --no-network --purge .lua-build-deps
|