Debian Codegraph @

luaexpat-scm-1.rockspec

raw
1 local package_name = "luaexpat"
2 local package_version = "scm"
3 local rockspec_revision = "1"
4 local github_account_name = "lunarmodules"
5 local github_repo_name = package_name
6
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 = (package_version == "scm") and "master" or nil,
14 tag = (package_version ~= "scm") and package_version or nil,
15 }
16
17 description = {
18 summary = "XML Expat parsing",
19 detailed = [[
20 LuaExpat is a SAX (Simple API for XML) XML parser based on the
21 Expat library.
22 ]],
23 license = "MIT/X11",
24 homepage = "https://"..github_account_name..".github.io/"..github_repo_name,
25 }
26
27 dependencies = {
28 "lua >= 5.1"
29 }
30
31 external_dependencies = {
32 EXPAT = {
33 header = "expat.h"
34 }
35 }
36
37 build = {
38 type = "builtin",
39 modules = {
40 lxp = {
41 sources = { "src/lxplib.c" },
42 libraries = { "expat" },
43 incdirs = { "$(EXPAT_INCDIR)", "src/" },
44 libdirs = { "$(EXPAT_LIBDIR)" },
45 },
46 ["lxp.lom"] = "src/lxp/lom.lua",
47 ["lxp.totable"] = "src/lxp/totable.lua",
48 ["lxp.threat"] = "src/lxp/threat.lua",
49 },
50 copy_directories = { "docs" }
51 }