Makefile 834 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # Copyright (C) 2013 Nils Schneider <nils at nilsschneider.net>
  2. # This is free software, licensed under the Apache 2.0 license.
  3. include $(TOPDIR)/rules.mk
  4. PKG_NAME:=gluon-luci-theme
  5. PKG_VERSION:=0.1
  6. PKG_RELEASE:=1
  7. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  8. include $(GLUONDIR)/include/package.mk
  9. define Package/gluon-luci-theme
  10. SECTION:=gluon
  11. CATEGORY:=Gluon
  12. TITLE:=Luci theme for Gluon
  13. DEPENDS:=+pretty-hostname
  14. endef
  15. define Package/gluon-luci-theme/description
  16. Luci based config mode
  17. endef
  18. define Build/Prepare
  19. mkdir -p $(PKG_BUILD_DIR)
  20. endef
  21. define Build/Configure
  22. endef
  23. define Build/Compile
  24. $(call GluonSrcDiet,./luasrc,$(PKG_BUILD_DIR)/luadest/)
  25. endef
  26. define Package/gluon-luci-theme/install
  27. $(CP) ./files/* $(1)/
  28. $(CP) $(PKG_BUILD_DIR)/luadest/* $(1)/
  29. endef
  30. $(eval $(call BuildPackage,gluon-luci-theme))