From af89cbfe99273d77b1f08a4e22c6ee2bb7e0bbdf Mon Sep 17 00:00:00 2001 From: vanhofen Date: Fri, 14 Jun 2019 21:32:36 +0200 Subject: [PATCH] - add target to install JSON.lua --- make/system-libs.mk | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/make/system-libs.mk b/make/system-libs.mk index 34d9aaee..59c2bf5c 100644 --- a/make/system-libs.mk +++ b/make/system-libs.mk @@ -667,6 +667,20 @@ $(D)/lua-feedparser: $(D)/luaexpat $(ARCHIVE)/$(LUA-FEEDPARSER_SOURCE) | $(TARGE # ----------------------------------------------------------------------------- +LUAJSON_SOURCE = JSON.lua +LUAJSON_URL = http://regex.info/code/$(LUAJSON_SOURCE) + +$(ARCHIVE)/$(LUAJSON_SOURCE): + $(WGET) $(LUAJSON_URL) + +$(D)/luajson: $(ARCHIVE)/$(LUAJSON_SOURCE) | $(TARGET_DIR) + $(CD) $(ARCHIVE); \ + curl --remote-name --time-cond $(LUAJSON_SOURCE) $(LUAJSON_URL) || true + install -D -m 0644 $(ARCHIVE)/$(LUAJSON_SOURCE) $(TARGET_DIR)/share/lua/$(LUA_ABIVER) + $(TOUCH) + +# ----------------------------------------------------------------------------- + LUACURL_VER = git LUACURL_SOURCE = lua-curlv3.$(LUACURL_VER) LUACURL_URL = https://github.com/lua-curl/$(LUACURL_SOURCE)