-
Notifications
You must be signed in to change notification settings - Fork 2
/
project-scm-1.rockspec
47 lines (38 loc) · 1.02 KB
/
project-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
43
44
45
46
47
local package_name = "[module-name]"
local package_version = "scm"
local rockspec_revision = "1"
local github_account_name = "[github-account-name]"
local github_repo_name = "[repo-name]"
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 = "[short-description]",
detailed = [[
[short-description]
]],
license = "MIT",
homepage = "https://github.com/"..github_account_name.."/"..github_repo_name,
}
dependencies = {
"lua >= 5.1, < 5.5",
}
build = {
type = "builtin",
modules = {
["[module-name].init"] = "src/[module-name]/init.lua",
},
install = {
bin = {
["[module-name]"] = "bin/[module-name].lua",
}
},
copy_directories = {
-- can be accessed by `luarocks [module-name] doc` from the commandline
"docs",
},
}