Makefile 960 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=ffho-luci-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 $(GLUONDIR)/include/package.mk
  7. PKG_CONFIG_DEPENDS += $(GLUON_I18N_CONFIG)
  8. define Package/ffho-luci-ap-timer
  9. SECTION:=ffho
  10. CATEGORY:=FFHO
  11. TITLE:=Luci module for ap-timer settings
  12. DEPENDS:=+gluon-luci-admin
  13. MAINTAINER:=Freifunk Hochstift <kontakt@hochstift.freifunk.net>
  14. URL:=https://git.c3pb.de/freifunk-pb/ffho-packages
  15. endef
  16. define Build/Prepare
  17. mkdir -p $(PKG_BUILD_DIR)
  18. endef
  19. define Build/Configure
  20. endef
  21. define Build/Compile
  22. $(call GluonBuildI18N,ffho-luci-ap-timer,i18n)
  23. $(call GluonSrcDiet,./luasrc,$(PKG_BUILD_DIR)/luadest/)
  24. endef
  25. define Package/ffho-luci-ap-timer/install
  26. $(CP) $(PKG_BUILD_DIR)/luadest/* $(1)/
  27. $(call GluonInstallI18N,ffho-luci-ap-timer,$(1))
  28. endef
  29. $(eval $(call BuildPackage,ffho-luci-ap-timer))