From 4c113cf4b9d61522c7a5a0c7b98d873378204dd5 Mon Sep 17 00:00:00 2001 From: Jan-Tarek Butt <tarek@ring0.de> Date: Mon, 30 May 2016 00:47:35 +0200 Subject: [PATCH] add json parser as host depend to strip the json file --- hoods/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hoods/Makefile b/hoods/Makefile index 5071500..1642fb5 100644 --- a/hoods/Makefile +++ b/hoods/Makefile @@ -4,6 +4,8 @@ PKG_NAME:=ffnw-hoods PKG_VERSION:=1 PKG_RELEASE:=1 +PKG_BUILD_DEPENDS := luci-base/host lua-cjson/host + PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME) include $(INCLUDE_DIR)/package.mk @@ -29,7 +31,8 @@ define Build/Compile endef define Package/$(PKG_NAME)/install - $(CP) ./files/* $(1)/ + $(INSTALL_DIR) $(1)/lib/ffnw/hoods + lua -e 'print(require("cjson").encode(assert(dofile("./files/lib/ffnw/hoods/hoods.json"))))' > $(1)/lib/ffnw/hoods/hoods.json endef $(eval $(call BuildPackage,$(PKG_NAME))) -- GitLab