Skip to content

Commit

Permalink
init v0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
LuttyYang committed Sep 16, 2015
1 parent cb730a5 commit 451292d
Show file tree
Hide file tree
Showing 12 changed files with 63 additions and 12 deletions.
8 changes: 8 additions & 0 deletions .gitignore
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
50 changes: 50 additions & 0 deletions Makefile
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)))
7 changes: 0 additions & 7 deletions etc/uci-defaults/luci-theme-material

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
@font-face {
font-family: 'icomoon';
src:url('./font.eot');
src:url('./font.eot') format('embedded-opentype'),
url('./font.ttf') format('truetype'),
url('./font.woff') format('woff'),
url('./font.svg') format('svg');
src:url('../fonts/font.eot');
src:url('../fonts/font.eot') format('embedded-opentype'),
url('../fonts/font.ttf') format('truetype'),
url('../fonts/font.woff') format('woff'),
url('../fonts/font.svg') format('svg');
font-weight: normal;
font-style: normal;
}
Expand Down
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.

0 comments on commit 451292d

Please sign in to comment.