python3-ble2mqtt: update to 0.1.8
[feed/packages.git] / lang / python / python-ble2mqtt / Makefile
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.1.8
11 PKG_RELEASE:=1
12
13 PYPI_NAME:=ble2mqtt
14 PKG_HASH:=206f707f5ad04b72247b1e772a569e14167e109f4e9f13d1d74eb4b049d4e6da
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))