From 6eb9bdfb81fcd3173e62eca2b33bc7c5d6c657f2 Mon Sep 17 00:00:00 2001 From: saspivey98 Date: Mon, 10 Apr 2023 11:21:32 -0500 Subject: [PATCH 1/2] fixes build on windows --- rockspecs/lua-zlib-1.2-3.rockspec | 41 +++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 rockspecs/lua-zlib-1.2-3.rockspec diff --git a/rockspecs/lua-zlib-1.2-3.rockspec b/rockspecs/lua-zlib-1.2-3.rockspec new file mode 100644 index 0000000..e84bc63 --- /dev/null +++ b/rockspecs/lua-zlib-1.2-3.rockspec @@ -0,0 +1,41 @@ +package = "lua-zlib" +version = "1.2-2" +source = { + url = "git+https://github.com/brimworks/lua-zlib.git", + tag = "v1.2", +} +description = { + summary = "Simple streaming interface to zlib for Lua.", + detailed = [[ + Simple streaming interface to zlib for Lua. + Consists of two functions: inflate and deflate. + Both functions return "stream functions" (takes a buffer of input and returns a buffer of output). + This project is hosted on github. + ]], + homepage = "https://github.com/brimworks/lua-zlib", + license = "MIT" +} +dependencies = { + "lua >= 5.1, <= 5.4" +} +external_dependencies = { + ZLIB = { + header = "zlib.h" + } +} + +build = { + type = "builtin", + modules = { + zlib = { + sources = { "lua_zlib.c" }, + libraries = { "z" }, + defines = { "LZLIB_COMPAT" }, + incdirs = { "$(ZLIB_INCDIR)" }, + } + }, + platforms = { windows = { variables = { + LUA_LIBRARIES = "$(LUA_LIBDIR)/$(LUALIB)" + }}} + +} From 13cc420b6b8267df11130f3ad9771cf641a053ca Mon Sep 17 00:00:00 2001 From: saspivey98 Date: Mon, 10 Apr 2023 11:23:21 -0500 Subject: [PATCH 2/2] changed revision --- rockspecs/lua-zlib-1.2-3.rockspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rockspecs/lua-zlib-1.2-3.rockspec b/rockspecs/lua-zlib-1.2-3.rockspec index e84bc63..aa783c8 100644 --- a/rockspecs/lua-zlib-1.2-3.rockspec +++ b/rockspecs/lua-zlib-1.2-3.rockspec @@ -1,5 +1,5 @@ package = "lua-zlib" -version = "1.2-2" +version = "1.2-3" source = { url = "git+https://github.com/brimworks/lua-zlib.git", tag = "v1.2",