b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | # |
| 2 | # Copyright (C) 2023 |
| 3 | # |
| 4 | # This is free software, licensed under the GNU General Public License v2. |
| 5 | # See /LICENSE for more information. |
| 6 | # |
| 7 | include $(TOPDIR)/rules.mk |
| 8 | |
| 9 | PKG_NAME:=python-ble2mqtt |
| 10 | PKG_VERSION:=0.2.2 |
| 11 | PKG_RELEASE:=1 |
| 12 | |
| 13 | PYPI_NAME:=ble2mqtt |
| 14 | PKG_HASH:=6c8abb4fe3d8ba77e42f23e4acdfbb99e337ed5bdea05db4e1b92d455186c8e6 |
| 15 | |
| 16 | PKG_MAINTAINER:=Quintin Hill <stuff@quintin.me.uk> |
| 17 | PKG_LICENSE:=MIT |
| 18 | PKG_LICENSE_FILES:=LICENSE |
| 19 | |
| 20 | include ../pypi.mk |
| 21 | include $(INCLUDE_DIR)/package.mk |
| 22 | include ../python3-package.mk |
| 23 | |
| 24 | define Package/python3-ble2mqtt |
| 25 | SECTION:=lang |
| 26 | CATEGORY:=Languages |
| 27 | SUBMENU:=Python |
| 28 | TITLE:=Bluetooth to MQTT bridge |
| 29 | URL:=https://github.com/devbis/ble2mqtt/ |
| 30 | DEPENDS:=+python3-light +python3-aio-mqtt-mod +python3-asyncio +python3-bleak +python3-logging +python3-uuid |
| 31 | endef |
| 32 | |
| 33 | define Package/python3-ble2mqtt/description |
| 34 | Bluetooth to MQTT bridge, add your bluetooth-capable (including controllable) |
| 35 | devices to your smart home |
| 36 | endef |
| 37 | |
| 38 | define Py3Package/python3-ble2mqtt/install |
| 39 | $(INSTALL_DIR) $(1)/etc/init.d |
| 40 | $(INSTALL_BIN) ./files/ble2mqtt.init $(1)/etc/init.d/ble2mqtt |
| 41 | $(INSTALL_DIR) $(1)/usr/bin |
| 42 | $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/ |
| 43 | endef |
| 44 | |
| 45 | $(eval $(call Py3Package,python3-ble2mqtt)) |
| 46 | $(eval $(call BuildPackage,python3-ble2mqtt)) |
| 47 | $(eval $(call BuildPackage,python3-ble2mqtt-src)) |