Skip to content
Snippets Groups Projects
Commit ea3f7c5a authored by Jan-Tarek Butt's avatar Jan-Tarek Butt
Browse files

Merge branch 'Feature/hoods-jsonminifyer' into 'master'

Feature/hoods jsonminifyer



See merge request !17
parents 87d2b491 c1e73321
No related branches found
No related tags found
1 merge request!17Feature/hoods jsonminifyer
...@@ -4,6 +4,8 @@ PKG_NAME:=ffnw-hoods ...@@ -4,6 +4,8 @@ PKG_NAME:=ffnw-hoods
PKG_VERSION:=1 PKG_VERSION:=1
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_BUILD_DEPENDS := luci-base/host lua-cjson/host
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME) PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
...@@ -29,7 +31,8 @@ define Build/Compile ...@@ -29,7 +31,8 @@ define Build/Compile
endef endef
define Package/$(PKG_NAME)/install define Package/$(PKG_NAME)/install
$(CP) ./files/* $(1)/ $(INSTALL_DIR) $(1)/lib/ffnw/hoods
lua -e 'local cjson = require("cjson"); print(cjson.encode(cjson.decode(assert(io.open("./files/lib/ffnw/hoods/hoods.json"):read("*a")))))' > $(1)/lib/ffnw/hoods/hoods.json
endef endef
$(eval $(call BuildPackage,$(PKG_NAME))) $(eval $(call BuildPackage,$(PKG_NAME)))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment