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.

46 lines
1.2 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-firmware-tool
  6. PKG_VERSION:=1.4.1
  7. PKG_RELEASE:=1
  8. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  9. PKG_SOURCE_URL:=https://codeload.github.com/bigclownlabs/bch-firmware-tool/tar.gz/v$(PKG_VERSION)?
  10. PKG_HASH:=076acd25af717fa9cc0ce180e2e863cfce8957d00cc24e982f44c91bae10f956
  11. PKG_BUILD_DIR:=$(BUILD_DIR)/bch-firmware-tool-$(PKG_VERSION)
  12. PKG_MAINTAINER:=Karel Kočí <cynerd@email.cz>
  13. PKG_LICENSE:=MIT
  14. PKG_LICENSE_FILES:=LICENSE
  15. include $(INCLUDE_DIR)/package.mk
  16. include ../../../lang/python/python3-package.mk
  17. define Package/$(PKG_NAME)
  18. SECTION:=utils
  19. CATEGORY:=Utilities
  20. SUBMENU:=BigClown
  21. TITLE:=BigCLown firmware tool
  22. URL:=https://github.com/bigclownlabs/bch-firmware-tool
  23. DEPENDS:= \
  24. +python3-appdirs \
  25. +python3-pyserial \
  26. +python3-colorama \
  27. +python3-yaml \
  28. +python3-schema \
  29. +python3-requests \
  30. +python3-click \
  31. +python3-intelhex
  32. endef
  33. define Build/Compile
  34. sed -i 's/@@VERSION@@/$(PKG_VERSION)/' "$(PKG_BUILD_DIR)/setup.py"
  35. $(call Py3Build/Compile/Default)
  36. endef
  37. $(eval $(call Py3Package,$(PKG_NAME)))
  38. $(eval $(call BuildPackage,$(PKG_NAME)))