1DOLLY 32MODULE lua34# Neovim supports PUC Lua 5.1. Build the upstream interpreter and C library;5# -rdynamic lets source-built Lua C modules share that interpreter's API.6REQUIRES HEADER libc7REQUIRES TOOL cc8REQUIRES TOOL ar9REQUIRES TOOL make10REQUIRES TOOL gzip11REQUIRES TOOL tar12REQUIRES TOOL mkdir13REQUIRES TOOL cp14REQUIRES TOOL rm15REQUIRES TOOL sed1617SOURCE HOST /static/neovim/lua-5.1.5.tar.gz /tmp/lua/source.tar.gz 2640fc56a795f29d28ef15e13c34a47e223960b0240e8cb0a82d9b073869533318SLOP gzip -dc /tmp/lua/source.tar.gz > /tmp/lua/source.tar19SLOP tar -xf /tmp/lua/source.tar -C /tmp/lua20SLOP sed 's@"/usr/local/"@"/usr/"@' /tmp/lua/lua-5.1.5/src/luaconf.h > /tmp/lua/luaconf.h21SLOP cp /tmp/lua/luaconf.h /tmp/lua/lua-5.1.5/src/luaconf.h22SLOP make -C /tmp/lua/lua-5.1.5/src \23  CC=cc \24  'CFLAGS=-O0 -std=gnu99 -DLUA_USE_POSIX -DLUA_USE_DLOPEN' \25  MYLDFLAGS=-rdynamic \26  'AR=ar rcs' \27  RANLIB=: \28  lua29SLOP cp /tmp/lua/lua-5.1.5/src/lua /usr/bin/lua30SLOP cp /tmp/lua/lua-5.1.5/src/liblua.a /usr/lib/liblua.a31SLOP mkdir -p /usr/include/lua5.1 /usr/share/licenses/lua32SLOP cp /tmp/lua/lua-5.1.5/src/lua.h /tmp/lua/lua-5.1.5/src/luaconf.h \33  /tmp/lua/lua-5.1.5/src/lauxlib.h /tmp/lua/lua-5.1.5/src/lualib.h /usr/include/lua5.134SLOP cp /tmp/lua/lua-5.1.5/COPYRIGHT /usr/share/licenses/lua/COPYRIGHT3536FILE /tmp/lua/extension.c37    #include <lua.h>38    #include <lauxlib.h>39    int luaopen_dolly_lua_check(lua_State* state) { lua_pushinteger(state, 42); return 1; }40SLOP cc -O0 -shared -I/usr/include/lua5.1 /tmp/lua/extension.c -o /tmp/lua/extension.so41SLOP lua -e 'assert(_VERSION == "Lua 5.1"); assert(assert(package.loadlib("/tmp/lua/extension.so", "luaopen_dolly_lua_check"))() == 42); local f = assert(io.open("/tmp/lua/data", "w")); f:write("shared files"); f:close(); assert(os.execute("test -s /tmp/lua/data") == 0)'4243EXPORTS TOOL lua44EXPORTS HEADER lua /usr/include/lua5.145EXPORTS LIB lua /usr/lib/liblua.a46FILE /usr/share/licenses/lua/COPYRIGHT4748SLOP rm -rf /tmp/lua49