From ac7f962b31e364dde4664d5a5ba104e5bdf365c0 Mon Sep 17 00:00:00 2001 From: Matthieu Coudron <886074+teto@users.noreply.github.com> Date: Sat, 7 Oct 2023 00:38:38 +0200 Subject: [PATCH 1/2] fix rockspec url --- .../lua-iconv-7-1.rockspec | 0 rockspecs/lua-iconv-7.0.0-2.rockspec | 51 +++++++++++++++++++ 2 files changed, 51 insertions(+) rename lua-iconv-7-1.rockspec => rockspecs/lua-iconv-7-1.rockspec (100%) create mode 100644 rockspecs/lua-iconv-7.0.0-2.rockspec diff --git a/lua-iconv-7-1.rockspec b/rockspecs/lua-iconv-7-1.rockspec similarity index 100% rename from lua-iconv-7-1.rockspec rename to rockspecs/lua-iconv-7-1.rockspec diff --git a/rockspecs/lua-iconv-7.0.0-2.rockspec b/rockspecs/lua-iconv-7.0.0-2.rockspec new file mode 100644 index 0000000..f877177 --- /dev/null +++ b/rockspecs/lua-iconv-7.0.0-2.rockspec @@ -0,0 +1,51 @@ + +-- Packs lua-iconv into a LuaRock +-- rockspec based uppon the file provided by DarkGod + +package = "lua-iconv" +version = "7.0.0-2" + +source = { + url = "https://github.com/lunarmodules/lua-iconv/archive/refs/tags/v7.0.0.tar.gz", +} + +description = { + summary = "Lua binding to the iconv", + detailed = [[ + Lua binding to the POSIX 'iconv' library, which converts a sequence of + characters from one codeset into a sequence of corresponding characters + in another codeset. + ]], + license = "MIT/X11", + homepage = "https://github.com/lunarmodules/lua-iconv/" +} + +dependencies = { + "lua >= 5.1", +} + +external_dependencies = { + ICONV = { + header = "iconv.h" + } +} + +build = { + type = "builtin", + modules = { + iconv = { + sources = {"luaiconv.c"}, + incdirs = {"$(ICONV_INCDIR)"}, + libdirs = {"$(ICONV_LIBDIR)"} + } + }, + platforms = { + cygwin = { + modules = { + iconv = { + libraries = {"iconv"} + } + } + } + } +} From ba4f3a451845998ddff82691421e1f9bf714e945 Mon Sep 17 00:00:00 2001 From: Matthieu Coudron <886074+teto@users.noreply.github.com> Date: Sat, 7 Oct 2023 14:52:13 +0200 Subject: [PATCH 2/2] build: added 6.1 rockspec --- rockspecs/lua-iconv-6-1.rockspec | 52 ++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 rockspecs/lua-iconv-6-1.rockspec diff --git a/rockspecs/lua-iconv-6-1.rockspec b/rockspecs/lua-iconv-6-1.rockspec new file mode 100644 index 0000000..69b1dfd --- /dev/null +++ b/rockspecs/lua-iconv-6-1.rockspec @@ -0,0 +1,52 @@ + +-- Packs lua-iconv into a LuaRock +-- rockspec based uppon the file provided by DarkGod + +package = "lua-iconv" +version = "6-1" + +source = { + url = "http://luaforge.net/frs/download.php/4181/lua-iconv-6.tar.gz", + md5 = "2cec334c5786d7c420a53003d6cb93d4" +} + +description = { + summary = "Lua binding to the iconv", + detailed = [[ + Lua binding to the POSIX 'iconv' library, which converts a sequence of + characters from one codeset into a sequence of corresponding characters + in another codeset. + ]], + license = "MIT/X11", + homepage = "http://luaforge.net/projects/lua-iconv/" +} + +dependencies = { + "lua >= 5.1", +} + +external_dependencies = { + ICONV = { + header = "iconv.h" + } +} + +build = { + type = "builtin", + modules = { + iconv = { + sources = {"luaiconv.c"}, + incdirs = {"$(ICONV_INCDIR)"}, + libdirs = {"$(ICONV_LIBDIR)"} + } + }, + platforms = { + cygwin = { + modules = { + iconv = { + libraries = {"iconv"} + } + } + } + } +}