|
|
@ -37,17 +37,20 @@ define Package/luci-theme-$(THEME_NAME)/install
|
|
|
|
$(CP) -a ./luasrc/* $(1)/www/luci-static/$(THEME_NAME)/ 2>/dev/null || true
|
|
|
|
$(CP) -a ./luasrc/* $(1)/www/luci-static/$(THEME_NAME)/ 2>/dev/null || true
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/view/themes/$(THEME_NAME)
|
|
|
|
$(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
|
|
|
|
$(CP) -a ./template/* $(1)/usr/lib/lua/luci/view/themes/$(THEME_NAME)/ 2>/dev/null || true
|
|
|
|
$(INSTALL_DIR) $(1)/www/luci-static/resources
|
|
|
|
$(INSTALL_DIR) $(1)/tmp/luci-theme-$(THEME_NAME)
|
|
|
|
$(CP) -a ./js/* $(1)/www/luci-static/resources/ 2>/dev/null || true
|
|
|
|
$(CP) ./css/custom.css $(1)/tmp/luci-theme-$(THEME_NAME)/custom.css
|
|
|
|
$(INSTALL_DIR) $(1)/www/luci-static/resources/view/dashboard/css
|
|
|
|
|
|
|
|
$(CP) ./css/custom.css $(1)/www/luci-static/resources/view/dashboard/css/custom.css
|
|
|
|
|
|
|
|
endef
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
|
|
define Package/luci-theme-$(THEME_NAME)/postinst
|
|
|
|
define Package/luci-theme-$(THEME_NAME)/postinst
|
|
|
|
#!/bin/sh
|
|
|
|
#!/bin/sh
|
|
|
|
[ -n "$${IPKG_INSTROOT}" ] || {
|
|
|
|
[ -n "$${IPKG_INSTROOT}" ] || {
|
|
|
|
( . /etc/uci-defaults/30-luci-theme-$(THEME_NAME) ) && rm -f /etc/uci-defaults/30-luci-theme-$(THEME_NAME)
|
|
|
|
( . /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
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,luci-theme-$(THEME_NAME)))
|
|
|
|
$(eval $(call BuildPackage,luci-theme-$(THEME_NAME)))
|
|
|
|