Skip to content

Commit 1ce9fa7

Browse files
authored
chore(rockspec): add new rockpec, same version incl Lua 5.5 (#39)
1 parent 75ce8e0 commit 1ce9fa7

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

rockspecs/date-2.2.1-2.rockspec

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
local package_name = "date"
2+
local package_version = "2.2.1"
3+
local rockspec_revision = "2"
4+
local github_account_name = "Tieske"
5+
local github_repo_name = package_name
6+
local git_checkout = package_version == "dev" and "master" or ("version_"..package_version)
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 = git_checkout
14+
}
15+
16+
description = {
17+
summary = "Date & Time module for Lua 5.x",
18+
detailed = [[
19+
Pure Lua Date & Time module for Lua 5.x featuring date and time string
20+
parsing, time addition & subtraction, time span calculation, support for
21+
ISO 8601 dates, local time support, strftime-like formatting.
22+
]],
23+
license = "MIT",
24+
homepage = "https://github.com/"..github_account_name.."/"..github_repo_name,
25+
}
26+
27+
dependencies = {
28+
"lua >= 5.0, < 5.5"
29+
}
30+
31+
build = {
32+
type = "builtin",
33+
modules = {
34+
date = "src/date.lua"
35+
},
36+
copy_directories = { "docs" },
37+
}

0 commit comments

Comments
 (0)