blob: f8610d557e6532d592c0aa328efcf7810d270e7a [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001#
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#
7include $(TOPDIR)/rules.mk
8
9PKG_NAME:=python-ble2mqtt
10PKG_VERSION:=0.2.2
11PKG_RELEASE:=1
12
13PYPI_NAME:=ble2mqtt
14PKG_HASH:=6c8abb4fe3d8ba77e42f23e4acdfbb99e337ed5bdea05db4e1b92d455186c8e6
15
16PKG_MAINTAINER:=Quintin Hill <stuff@quintin.me.uk>
17PKG_LICENSE:=MIT
18PKG_LICENSE_FILES:=LICENSE
19
20include ../pypi.mk
21include $(INCLUDE_DIR)/package.mk
22include ../python3-package.mk
23
24define 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
31endef
32
33define Package/python3-ble2mqtt/description
34 Bluetooth to MQTT bridge, add your bluetooth-capable (including controllable)
35 devices to your smart home
36endef
37
38define 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/
43endef
44
45$(eval $(call Py3Package,python3-ble2mqtt))
46$(eval $(call BuildPackage,python3-ble2mqtt))
47$(eval $(call BuildPackage,python3-ble2mqtt-src))