-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhomie-scm-1.rockspec
42 lines (40 loc) · 1.22 KB
/
homie-scm-1.rockspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
local package_name = "homie"
local package_version = "scm"
local rockspec_revision = "1"
local github_account_name = "Tieske"
local github_repo_name = "homie.lua"
package = package_name
version = package_version.."-"..rockspec_revision
source = {
url = "git+https://github.com/"..github_account_name.."/"..github_repo_name..".git",
branch = (package_version == "scm") and "main" or nil,
tag = (package_version ~= "scm") and package_version or nil,
}
description = {
summary = "Homie (an MQTT convention for IoT/M2M) implementation in Lua",
detailed = [[
Homie.lua provides a Lua based Homie implementation for devices and
controllers.
]],
license = "MIT/X11",
homepage = "https://github.com/"..github_account_name.."/"..github_repo_name,
}
dependencies = {
"lua >= 5.1, < 5.5",
"copas >= 4.0",
--"luamqtt", -- do: "luarocks install Tieske/luamqtt --dev" for now
"lualogging >= 1.6",
"penlight ~> 1",
}
build = {
type = "builtin",
modules = {
["homie.meta"] = "src/homie/meta.lua",
["homie.utils"] = "src/homie/utils.lua",
["homie.device"] = "src/homie/device.lua",
["homie.controller"] = "src/homie/controller.lua",
},
copy_directories = {
"docs",
},
}