From bb749d54144c159cdd9679d68a5fcd4bebaebb75 Mon Sep 17 00:00:00 2001 From: Caleb Maclennan Date: Sat, 20 Aug 2022 16:55:56 +0300 Subject: [PATCH] chore: Add scm rockspec (patterned after Penlight) Named scm not dev because busted and luassert used scm. --- say-scm-1.rockspec | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 say-scm-1.rockspec diff --git a/say-scm-1.rockspec b/say-scm-1.rockspec new file mode 100644 index 0000000..8a37210 --- /dev/null +++ b/say-scm-1.rockspec @@ -0,0 +1,41 @@ +local package_name = "say" +local package_version = "scm" +local rockspec_revision = "1" +local github_account_name = "lunarmodules" +local github_repo_name = package_name +local git_checkout = package_version == "scm" and "master" or package_version + +rockspec_format = "3.0" +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 = "Lua string hashing/indexing library", + detailed = [[ + Useful for internationalization. + ]], + homepage = "https://lunarmodules.github.io/busted/", + license = "MIT " +} +dependencies = { + "lua >= 5.1" +} + +test_dependencies = { + "busted", +} + +test = { + type = "busted", +} + +build = { + type = "builtin", + modules = { + ["say.init"] = "src/init.lua" + } +}