Makefile 899 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=ffho-web-ap-timer
  3. PKG_VERSION:=1
  4. PKG_RELEASE:=$(GLUON_VERSION).$(GLUON_SITE_CODE)-$(GLUON_RELEASE).$(GLUON_CONFIG_VERSION)
  5. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  6. include $(TOPDIR)/../package/gluon.mk
  7. PKG_CONFIG_DEPENDS += $(GLUON_I18N_CONFIG)
  8. define Package/ffho-web-ap-timer
  9. SECTION:=ffho
  10. CATEGORY:=FFHO
  11. TITLE:=Luci module for ap-timer settings
  12. DEPENDS:=+gluon-web-admin
  13. MAINTAINER:=Freifunk Hochstift <kontakt@hochstift.freifunk.net>
  14. endef
  15. define Build/Prepare
  16. mkdir -p $(PKG_BUILD_DIR)
  17. endef
  18. define Build/Configure
  19. endef
  20. define Build/Compile
  21. $(call GluonBuildI18N,ffho-web-ap-timer,i18n)
  22. $(call GluonSrcDiet,./luasrc,$(PKG_BUILD_DIR)/luadest/)
  23. endef
  24. define Package/ffho-web-ap-timer/install
  25. $(CP) $(PKG_BUILD_DIR)/luadest/* $(1)/
  26. $(call GluonInstallI18N,ffho-web-ap-timer,$(1))
  27. endef
  28. $(eval $(call BuildPackage,ffho-web-ap-timer))