From 06348133e6fe2020d57f1e1e48f1c394389c4cd1 Mon Sep 17 00:00:00 2001 From: Thijs Schreijer Date: Tue, 17 Feb 2026 22:34:25 +0100 Subject: [PATCH] chore(rockspec): add new rockpec, same version incl Lua 5.5 --- rockspecs/date-2.2.1-2.rockspec | 37 +++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 rockspecs/date-2.2.1-2.rockspec diff --git a/rockspecs/date-2.2.1-2.rockspec b/rockspecs/date-2.2.1-2.rockspec new file mode 100644 index 0000000..783d75d --- /dev/null +++ b/rockspecs/date-2.2.1-2.rockspec @@ -0,0 +1,37 @@ +local package_name = "date" +local package_version = "2.2.1" +local rockspec_revision = "2" +local github_account_name = "Tieske" +local github_repo_name = package_name +local git_checkout = package_version == "dev" and "master" or ("version_"..package_version) + +package = package_name +version = package_version .. "-" .. rockspec_revision + +source = { + url = "git+https://github.com/"..github_account_name.."/"..github_repo_name..".git", + branch = git_checkout +} + +description = { + summary = "Date & Time module for Lua 5.x", + detailed = [[ + Pure Lua Date & Time module for Lua 5.x featuring date and time string + parsing, time addition & subtraction, time span calculation, support for + ISO 8601 dates, local time support, strftime-like formatting. + ]], + license = "MIT", + homepage = "https://github.com/"..github_account_name.."/"..github_repo_name, +} + +dependencies = { + "lua >= 5.0, < 5.5" +} + +build = { + type = "builtin", + modules = { + date = "src/date.lua" + }, + copy_directories = { "docs" }, +}