You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.1 KiB

  1. # This is free software, licensed under the GNU General Public License v2.
  2. # See /LICENSE for more information.
  3. #
  4. include $(TOPDIR)/rules.mk
  5. PKG_NAME:=bigclown-control-tool
  6. PKG_VERSION:=0.2.0
  7. PKG_RELEASE:=1
  8. PKG_SOURCE_URL:=https://codeload.github.com/bigclownlabs/bch-control-tool/tar.gz/v$(PKG_VERSION)?
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  10. PKG_HASH:=c79a76e0940958e4ddcf51e57fadfb127f568b6c1ceb02033c3630bab2dee612
  11. PKG_LICENSE:=MIT
  12. PKG_MAINTAINER:=Karel Kočí <cynerd@email.cz>
  13. PKG_BUILD_DIR:=$(BUILD_DIR)/bch-control-tool-$(PKG_VERSION)
  14. include $(INCLUDE_DIR)/package.mk
  15. include ../../../lang/python/python3-package.mk
  16. define Package/$(PKG_NAME)
  17. SECTION:=utils
  18. CATEGORY:=Utilities
  19. SUBMENU:=BigClown
  20. URL:=https://github.com/bigclownlabs/bch-control-tool
  21. TITLE:=BigCLown control tool
  22. DEPENDS:=+python3-click-log +python3-paho-mqtt +python3-pyserial +python3-yaml +python3-simplejson
  23. endef
  24. define Build/Compile
  25. sed -i 's/@@VERSION@@/$(PKG_VERSION)/' "$(PKG_BUILD_DIR)/setup.py"
  26. $(call Py3Build/Compile/Default)
  27. endef
  28. $(eval $(call Py3Package,$(PKG_NAME)))
  29. $(eval $(call BuildPackage,$(PKG_NAME)))