From 0c3fc0d4d185ececa79200a4cbccd8ed15e10a4d Mon Sep 17 00:00:00 2001 From: riley Date: Fri, 22 Sep 2023 18:56:50 -0400 Subject: [PATCH] fixed it so it acutally installs that package --- Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index f3f4c76..76af4ff 100644 --- a/Makefile +++ b/Makefile @@ -37,17 +37,20 @@ define Package/luci-theme-$(THEME_NAME)/install $(CP) -a ./luasrc/* $(1)/www/luci-static/$(THEME_NAME)/ 2>/dev/null || true $(INSTALL_DIR) $(1)/usr/lib/lua/luci/view/themes/$(THEME_NAME) $(CP) -a ./template/* $(1)/usr/lib/lua/luci/view/themes/$(THEME_NAME)/ 2>/dev/null || true - $(INSTALL_DIR) $(1)/www/luci-static/resources - $(CP) -a ./js/* $(1)/www/luci-static/resources/ 2>/dev/null || true - $(INSTALL_DIR) $(1)/www/luci-static/resources/view/dashboard/css - $(CP) ./css/custom.css $(1)/www/luci-static/resources/view/dashboard/css/custom.css + $(INSTALL_DIR) $(1)/tmp/luci-theme-$(THEME_NAME) + $(CP) ./css/custom.css $(1)/tmp/luci-theme-$(THEME_NAME)/custom.css endef define Package/luci-theme-$(THEME_NAME)/postinst #!/bin/sh [ -n "$${IPKG_INSTROOT}" ] || { ( . /etc/uci-defaults/30-luci-theme-$(THEME_NAME) ) && rm -f /etc/uci-defaults/30-luci-theme-$(THEME_NAME) + # Always overwrite custom.css + mv -f /tmp/luci-theme-$(THEME_NAME)/custom.css /www/luci-static/resources/view/dashboard/css/custom.css + # Remove the temporary directory + rm -rf /tmp/luci-theme-$(THEME_NAME) } endef + $(eval $(call BuildPackage,luci-theme-$(THEME_NAME)))