* [Buildroot] [PATCH] package/lua-mqtt: new package
@ 2022-11-09 8:34 Francois Perrad
2022-11-22 22:29 ` Thomas Petazzoni via buildroot
0 siblings, 1 reply; 2+ messages in thread
From: Francois Perrad @ 2022-11-09 8:34 UTC (permalink / raw)
To: buildroot
Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
---
package/Config.in | 1 +
package/lua-mqtt/Config.in | 11 +++++++++++
package/lua-mqtt/lua-mqtt.hash | 3 +++
package/lua-mqtt/lua-mqtt.mk | 11 +++++++++++
4 files changed, 26 insertions(+)
create mode 100644 package/lua-mqtt/Config.in
create mode 100644 package/lua-mqtt/lua-mqtt.hash
create mode 100644 package/lua-mqtt/lua-mqtt.mk
diff --git a/package/Config.in b/package/Config.in
index 78d4d924d..1894fc0b3 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -722,6 +722,7 @@ menu "Lua libraries/modules"
source "package/lua-lyaml/Config.in"
source "package/lua-markdown/Config.in"
source "package/lua-messagepack/Config.in"
+ source "package/lua-mqtt/Config.in"
source "package/lua-msgpack-native/Config.in"
source "package/lua-periphery/Config.in"
source "package/lua-resty-http/Config.in"
diff --git a/package/lua-mqtt/Config.in b/package/lua-mqtt/Config.in
new file mode 100644
index 000000000..b71331905
--- /dev/null
+++ b/package/lua-mqtt/Config.in
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_LUA_MQTT
+ bool "lua-mqtt"
+ depends on BR2_PACKAGE_LUA_5_3 || BR2_PACKAGE_LUA_5_4
+ help
+ client library for MQTT 3.1.1 & 5.
+
+ https://fperrad.frama.io/lua-mqtt
+
+comment "lua-mqtt needs a Lua >= 5.3"
+ depends on !BR2_PACKAGE_LUA_5_3
+ depends on !BR2_PACKAGE_LUA_5_4
diff --git a/package/lua-mqtt/lua-mqtt.hash b/package/lua-mqtt/lua-mqtt.hash
new file mode 100644
index 000000000..3636e9e6a
--- /dev/null
+++ b/package/lua-mqtt/lua-mqtt.hash
@@ -0,0 +1,3 @@
+# computed by luarocks/buildroot
+sha256 986ec63dd9f0761f9c5231f6e19529138602c289e13da5c71dc1449f5f247152 lua-mqtt-0.1.0-1.src.rock
+sha256 e86d7c8adfabcb7c6515cc6e524bf0a76f7b3a86560a7ac47d7cabae5f8391a2 lua-mqtt-0.1.0/COPYRIGHT
diff --git a/package/lua-mqtt/lua-mqtt.mk b/package/lua-mqtt/lua-mqtt.mk
new file mode 100644
index 000000000..a2f17d2b2
--- /dev/null
+++ b/package/lua-mqtt/lua-mqtt.mk
@@ -0,0 +1,11 @@
+################################################################################
+#
+# lua-mqtt
+#
+################################################################################
+
+LUA_MQTT_VERSION = 0.1.0-1
+LUA_MQTT_LICENSE = MIT
+LUA_MQTT_LICENSE_FILES = $(LUA_MQTT_SUBDIR)/COPYRIGHT
+
+$(eval $(luarocks-package))
--
2.37.2
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-11-22 22:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-09 8:34 [Buildroot] [PATCH] package/lua-mqtt: new package Francois Perrad
2022-11-22 22:29 ` Thomas Petazzoni via buildroot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox