Skip to content

Commit

Permalink
adds new rockspec
Browse files Browse the repository at this point in the history
  • Loading branch information
EvandroLG committed Apr 21, 2024
1 parent 66659a8 commit 618476b
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions rockspecs/pegasus-1.0.5-0.rockspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
local package_name = "pegasus"
local package_version = "1.0.5"
local rockspec_revision = "0"
local github_account_name = "evandrolg"
local github_repo_name = "pegasus.lua"


package = package_name
version = package_version .. "-" .. rockspec_revision

source = {
url = "git+https://github.com/" .. github_account_name .. "/" .. github_repo_name .. ".git",
branch = (package_version == "dev") and "master" or nil,
tag = (package_version ~= "dev") and ("v" .. package_version) or nil,
}

description = {
summary = 'Pegasus.lua is an http server to work with web applications written in Lua language.',
maintainer = 'Evandro Leopoldino Gonçalves (@evandrolg) <[email protected]>',
license = 'MIT <http://opensource.org/licenses/MIT>',
homepage = "https://github.com/" .. github_account_name .. "/" .. github_repo_name,
}

dependencies = {
"lua >= 5.1",
"mimetypes >= 1.0.0-1",
"luasocket >= 0.1.0-0",
"luafilesystem >= 1.6",
"lzlib >= 0.4.1.53-1",
}

build = {
type = "builtin",
modules = {
['pegasus.init'] = "src/pegasus/init.lua",
['pegasus.handler'] = 'src/pegasus/handler.lua',
['pegasus.request'] = 'src/pegasus/request.lua',
['pegasus.response'] = 'src/pegasus/response.lua',
['pegasus.compress'] = 'src/pegasus/compress.lua',
['pegasus.plugins.compress'] = 'src/pegasus/plugins/compress.lua',
['pegasus.plugins.downloads'] = 'src/pegasus/plugins/downloads.lua',
['pegasus.plugins.files'] = 'src/pegasus/plugins/files.lua',
['pegasus.plugins.router'] = 'src/pegasus/plugins/router.lua',
['pegasus.plugins.tls'] = 'src/pegasus/plugins/tls.lua',
}
}

0 comments on commit 618476b

Please sign in to comment.