Skip to content

Commit c7d10b7

Browse files
committed
chore(rockspec): parameterize and update organization
1 parent 47592e9 commit c7d10b7

File tree

1 file changed

+21
-7
lines changed

1 file changed

+21
-7
lines changed

cluacov-dev-1.rockspec

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,35 @@
1+
local package_name = "cluacov"
2+
local package_version = "dev"
3+
local rockspec_revision = "1"
4+
local github_account_name = "lunarmodules"
5+
local github_repo_name = "cluacov"
6+
7+
18
rockspec_format = "3.0"
2-
package = "cluacov"
3-
version = "dev-1"
9+
package = package_name
10+
version = package_version.."-"..rockspec_revision
11+
412
source = {
5-
url = "git+https://github.com/luarocks/cluacov.git"
13+
url = "git+https://github.com/"..github_account_name.."/"..github_repo_name..".git",
14+
branch = (package_version == "dev") and "main" or nil,
15+
tag = (package_version ~= "dev") and package_version or nil,
616
}
17+
718
description = {
819
summary = "C extensions for LuaCov",
920
detailed = [[
10-
Optional C extensions for LuaCov, improving performance and reducing
11-
number of lines incorrectly marked as missed. Depends on LuaCov.
21+
Optional C extensions for LuaCov, improving performance and reducing
22+
number of lines incorrectly marked as missed. Depends on LuaCov.
1223
]],
13-
homepage = "https://github.com/luarocks/cluacov",
24+
homepage = "https://github.com/"..github_account_name.."/"..github_repo_name,
1425
license = "MIT"
1526
}
27+
1628
dependencies = {
1729
"lua >= 5.1",
1830
"luacov >= 0.13.0"
1931
}
32+
2033
build = {
2134
type = "builtin",
2235
modules = {
@@ -25,6 +38,7 @@ build = {
2538
["cluacov.version"] = "src/cluacov/version.lua"
2639
}
2740
}
41+
2842
test = {
2943
type = "busted"
30-
}
44+
}

0 commit comments

Comments
 (0)