diff options
| author | Arnout Vandecappelle <arnout@mind.be> | 2017-02-23 18:00:36 +0100 |
|---|---|---|
| committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2017-03-02 22:53:06 +0100 |
| commit | 276f4fd56208fc496f5c5739d347fbd05bba7108 (patch) | |
| tree | c45119954bf579becb4fbe00ea4d7b7995429c8d /package/lua-bit32/lua-bit32.mk | |
| parent | 56a9131373d149ca4a6162bd5f9bc0b943d87cb6 (diff) | |
| download | buildroot-276f4fd56208fc496f5c5739d347fbd05bba7108.tar.gz buildroot-276f4fd56208fc496f5c5739d347fbd05bba7108.zip | |
lua-bit32: new package
This package is needed to make luaposix work.
The upstream name is just "bit32", but the luarocks infra doesn't
support an upstream name different from the Buildroot name. We therefore
have to explicitly set all variables and we need custom extract
commands.
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
[Thomas:
- add entry to DEVELOPERS file
- remove useless "depends on BR2_PACKAGE_HAS_LUAINTERPRETER" in
Config.in file.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/lua-bit32/lua-bit32.mk')
| -rw-r--r-- | package/lua-bit32/lua-bit32.mk | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/package/lua-bit32/lua-bit32.mk b/package/lua-bit32/lua-bit32.mk new file mode 100644 index 0000000000..8304d6eaec --- /dev/null +++ b/package/lua-bit32/lua-bit32.mk @@ -0,0 +1,20 @@ +################################################################################ +# +# lua-bit32 +# +################################################################################ + +LUA_BIT32_VERSION = 5.3.0-1 +LUA_BIT32_SUBDIR = lua-compat-5.2 +LUA_BIT32_ROCKSPEC = bit32-$(LUA_BIT32_VERSION).rockspec +LUA_BIT32_SOURCE = bit32-$(LUA_BIT32_VERSION).src.rock +LUA_BIT32_LICENSE = MIT +LUA_BIT32_LICENSE_FILES = $(LUA_BIT32_SUBDIR)/LICENSE + +define LUA_BIT32_EXTRACT_CMDS + cd $(LUA_BIT32_DIR) && \ + $(LUAROCKS_RUN_ENV) $(LUAROCKS_RUN_CMD) unpack --force $(DL_DIR)/$(LUA_BIT32_SOURCE) && \ + mv bit32-$(LUA_BIT32_VERSION)/* . +endef + +$(eval $(luarocks-package)) |

