superlint/scripts/install-lua.sh
Marco Ferrari 6af32f6575
build: install lua from the os package repository (#5655)
- Install lua and luarocks from the OS package repository instead of
  manually downloading them. Also the luarock fork looked
  unmaintained.
- Remove luarocks from the image after installing lua packages because
  it's not needed after that
2024-05-28 08:39:07 +02:00

22 lines
372 B
Bash
Executable file

#!/usr/bin/env bash
set -euo pipefail
apk add --no-cache \
lua5.4
apk add --no-cache --virtual .lua-build-deps \
gcc \
lua5.4-dev \
luarocks5.4 \
make \
musl-dev \
readline-dev
ln -s /usr/bin/lua5.4 /usr/bin/lua
luarocks-5.4 install luacheck
luarocks-5.4 install argparse
luarocks-5.4 install luafilesystem
apk del --no-network --purge .lua-build-deps