forked from LuttyYang/luci-theme-material
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
63 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# OS generated files # | ||
###################### | ||
.DS_Store | ||
thumbs.db | ||
Icon? | ||
Thumbs.db | ||
.AppleDouble | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# LuCI Material Theme | ||
# Copyright 2015 Lutty Yang <[email protected]> | ||
# | ||
# Licensed under the Apache License v2.0 | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
include $(TOPDIR)/rules.mk | ||
|
||
THEME_NAME:=material | ||
THEME_TITLE:=Material | ||
|
||
PKG_NAME:=luci-theme-$(THEME_NAME) | ||
PKG_VERSION:=1 | ||
PKG_RELEASE:=1 | ||
|
||
include $(INCLUDE_DIR)/package.mk | ||
|
||
define Package/luci-theme-$(THEME_NAME) | ||
SECTION:=luci | ||
CATEGORY:=LuCI | ||
SUBMENU:=9. Themes | ||
DEPENDS:=+luci-theme-base | ||
TITLE:=LuCI Theme - $(THEME_TITLE) | ||
URL:=http://wcan.in/ | ||
PKGARCH:=all | ||
endef | ||
|
||
define Build/Configure | ||
endef | ||
|
||
define Build/Compile | ||
endef | ||
|
||
define Package/luci-theme-$(THEME_NAME)/install | ||
$(INSTALL_DIR) $(1)/etc/uci-defaults | ||
echo "uci set luci.themes.$(THEME_TITLE)=/luci-static/$(THEME_NAME); uci commit luci" > $(1)/etc/uci-defaults/luci-theme-$(THEME_NAME) | ||
$(INSTALL_DIR) $(1)/www/luci-static/$(THEME_NAME) | ||
$(CP) -a ./files/htdocs/* $(1)/www/luci-static/$(THEME_NAME)/ 2>/dev/null || true | ||
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/view/themes/$(THEME_NAME) | ||
$(CP) -a ./files/templates/* $(1)/usr/lib/lua/luci/view/themes/$(THEME_NAME)/ 2>/dev/null || true | ||
endef | ||
|
||
define Package/luci-theme-$(THEME_NAME)/postinst | ||
#!/bin/sh | ||
[ -n "$${IPKG_INSTROOT}" ] || { | ||
( . /etc/uci-defaults/luci-theme-$(THEME_NAME) ) && rm -f /etc/uci-defaults/luci-theme-$(THEME_NAME) | ||
} | ||
endef | ||
|
||
$(eval $(call BuildPackage,luci-theme-$(THEME_NAME))) |
This file was deleted.
Oops, something went wrong.
10 changes: 5 additions & 5 deletions
10
www/luci-static/material/css/style.css → files/htdocs/css/style.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.