Skip to content

Commit

Permalink
Merge pull request #11 from lunarmodules/fix-rockspec
Browse files Browse the repository at this point in the history
  • Loading branch information
teto authored Oct 7, 2023
2 parents 80e3266 + ba4f3a4 commit e4d200c
Show file tree
Hide file tree
Showing 3 changed files with 103 additions and 0 deletions.
52 changes: 52 additions & 0 deletions rockspecs/lua-iconv-6-1.rockspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@

-- Packs lua-iconv into a LuaRock
-- rockspec based uppon the file provided by DarkGod <darkgod at net-core.org>

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"}
}
}
}
}
}
File renamed without changes.
51 changes: 51 additions & 0 deletions rockspecs/lua-iconv-7.0.0-2.rockspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@

-- Packs lua-iconv into a LuaRock
-- rockspec based uppon the file provided by DarkGod <darkgod at net-core.org>

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"}
}
}
}
}
}

0 comments on commit e4d200c

Please sign in to comment.