distributable: url: https://github.com/luarocks/luarocks/archive/refs/tags/v{{version.raw}}.tar.gz strip-components: 1 versions: github: luarocks/luarocks/tags strip: /v/ dependencies: lua.org: '*' info-zip.org/unzip: '*' build: dependencies: gnu.org/make: ^4 gnu.org/sed: ^4 script: - ./configure $ARGS - make --jobs {{ hw.concurrency }} install - run: | fix-shebangs.ts luarocks-admin luarocks sed -i \ -e 's|\[\[{{prefix}}|debug.getinfo(1).source:match("@?(.*/)") .. \[\[..|g' \ luarocks-admin luarocks working-directory: ${{prefix}}/bin # luarocks config has fixed paths - run: | mv bin tbin mkdir bin working-directory: ${{prefix}} - run: | cat $PROP >luarocks cat $PROP >luarocks-admin chmod +x luarocks luarocks-admin working-directory: ${{prefix}}/bin prop: | #!/bin/sh d="$(cd "$(dirname "$0")"/.. && pwd)" x="$(basename "$0")" cat >"$d/etc/luarocks/config-{{deps.lua.org.version.marketing}}.lua" <