2 include $(TOPDIR
)/rules.mk
9 PKG_HASH
:=eb94af853605f4f1ea3c34b66e2f84f3d9845d795529ae8429feb954e74876d7
11 PKG_MAINTAINER
:=Tom Grime
<tom.grime@gmail.com
>
13 PKG_LICENSE_FILES
:=LICENCE
15 include ..
/..
/lang
/python
/pypi.mk
16 include $(INCLUDE_DIR
)/package.mk
17 include ..
/..
/lang
/python
/python3-package.mk
19 define Package
/mqttled
22 TITLE
:=LED Control from MQTT
23 URL
:=https
://github.com
/trevortrevor
/mqttled
/
28 +python3-jsonpath-ng \
35 +python3-pkg-resources
39 define Package
/mqttled
/description
40 Exposes the LEDs of your device to an MQTT broker with optional Home Assistant auto discovery
43 define Py3Package
/mqttled
/install
44 $(INSTALL_DIR
) $(1)/usr
/bin
45 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/mqttled
$(1)/usr
/bin
/
47 $(INSTALL_DIR
) $(1)/etc
/init.d
48 $(INSTALL_BIN
) .
/files
/mqttled.init
$(1)/etc
/init.d
/mqttled
49 $(INSTALL_DIR
) $(1)/etc
/config
50 $(INSTALL_DATA
) .
/files
/mqttled.config
$(1)/etc
/config
/mqttled
53 define Package
/mqttled
/conffiles
57 $(eval
$(call Py3Package
,mqttled
))
58 $(eval
$(call BuildPackage
,mqttled
))