File tree Expand file tree Collapse file tree 2 files changed +42
-1
lines changed
Expand file tree Collapse file tree 2 files changed +42
-1
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ version = package_version.."-"..rockspec_revision
1111source = {
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
1717description = {
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments