Makefile 828 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=ffho-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. define Package/ffho-ap-timer
  8. SECTION:=ffho
  9. CATEGORY:=FFHO
  10. TITLE:=Timer for the client wifi
  11. DEPENDS:=+gluon-core
  12. MAINTAINER:=Freifunk Hochstift <kontakt@hochstift.freifunk.net>
  13. endef
  14. define Package/ffho-ap-timer/description
  15. Timer for the client wifi
  16. endef
  17. define Build/Prepare
  18. mkdir -p $(PKG_BUILD_DIR)
  19. endef
  20. define Build/Configure
  21. endef
  22. define Build/Compile
  23. $(call GluonSrcDiet,./luasrc,$(PKG_BUILD_DIR)/luadest/)
  24. endef
  25. define Package/ffho-ap-timer/install
  26. $(CP) ./files/* $(1)/
  27. $(CP) $(PKG_BUILD_DIR)/luadest/* $(1)/
  28. endef
  29. $(eval $(call BuildPackage,ffho-ap-timer))