Makefile 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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:=ffho-web-autoupdater
  5. PKG_VERSION:=1
  6. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  7. include $(TOPDIR)/../package/gluon.mk
  8. PKG_CONFIG_DEPENDS += $(GLUON_I18N_CONFIG)
  9. define Package/ffho-web-autoupdater
  10. SECTION:=ffho
  11. CATEGORY:=FFHO
  12. TITLE:=gluon-web module for gluon-autoupdater and ffho-autoupdater-wifi-fallback
  13. DEPENDS:=+gluon-web-admin +ffho-autoupdater-wifi-fallback
  14. MAINTAINER:=Freifunk Hochstift <kontakt@hochstift.freifunk.net>
  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-web-autoupdater,i18n)
  23. $(call GluonSrcDiet,./luasrc,$(PKG_BUILD_DIR)/luadest/)
  24. endef
  25. define Package/ffho-web-autoupdater/install
  26. $(CP) $(PKG_BUILD_DIR)/luadest/* $(1)/
  27. $(call GluonInstallI18N,ffho-web-autoupdater,$(1))
  28. endef
  29. $(eval $(call BuildPackage,ffho-web-autoupdater))