Skip to content

Commit

Permalink
chore: Add scm rockspec (patterned after Penlight)
Browse files Browse the repository at this point in the history
Named scm not dev because busted and luassert used scm.
  • Loading branch information
alerque committed Aug 20, 2022
1 parent 36e8530 commit bb749d5
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions say-scm-1.rockspec
Original file line number Diff line number Diff line change
@@ -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 <http://opensource.org/licenses/MIT>"
}
dependencies = {
"lua >= 5.1"
}

test_dependencies = {
"busted",
}

test = {
type = "busted",
}

build = {
type = "builtin",
modules = {
["say.init"] = "src/init.lua"
}
}

0 comments on commit bb749d5

Please sign in to comment.