fixed it so it acutally installs that package

main
riley 1 year ago
parent 3ab3602c3f
commit 0c3fc0d4d1

@ -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)))

Loading…
Cancel
Save