Skip to content

Commit 0475b03

Browse files
committed
fix(rockspec): tags have a 'v' prefix
1 parent 170f370 commit 0475b03

File tree

2 files changed

+42
-1
lines changed

2 files changed

+42
-1
lines changed

mimetypes-dev-1.rockspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ version = package_version.."-"..rockspec_revision
1111
source = {
1212
url = "git+https://github.com/"..github_account_name.."/"..github_repo_name..".git",
1313
branch = (package_version == "dev") and "main" or nil,
14-
tag = (package_version ~= "dev") and package_version or nil,
14+
tag = (package_version ~= "dev") and ("v" .. package_version) or nil,
1515
}
1616

1717
description = {
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
local package_name = "mimetypes"
2+
local package_version = "1.1.0"
3+
local rockspec_revision = "2"
4+
local github_account_name = "lunarmodules"
5+
local github_repo_name = "lua-mimetypes"
6+
7+
8+
package = package_name
9+
version = package_version.."-"..rockspec_revision
10+
11+
source = {
12+
url = "git+https://github.com/"..github_account_name.."/"..github_repo_name..".git",
13+
branch = (package_version == "dev") and "main" or nil,
14+
tag = (package_version ~= "dev") and ("v" .. package_version) or nil,
15+
}
16+
17+
description = {
18+
summary = "A simple library for looking up the MIME types of files.",
19+
detailed = [[
20+
This is a simple library for guessing a file's MIME type. It includes
21+
a (hopefully) comprehensive database of MIME types, but it allows you
22+
to create your own should you have specific requirements. It can
23+
guess types both by extension and by the complete filename.
24+
]],
25+
homepage = "https://github.com/"..github_account_name.."/"..github_repo_name,
26+
license = "MIT/X11",
27+
}
28+
29+
dependencies = {
30+
"lua >= 5.1"
31+
}
32+
33+
build = {
34+
type = "builtin",
35+
modules = {
36+
["mimetypes"] = "mimetypes.lua",
37+
["mimetypes.filenames"] = "mimetypes/filenames.lua",
38+
["mimetypes.extensions"] = "mimetypes/extensions.lua",
39+
["mimetypes.generated"] = "mimetypes/generated.lua",
40+
}
41+
}

0 commit comments

Comments
 (0)