-
Notifications
You must be signed in to change notification settings - Fork 8
/
oocairo-scm-0.rockspec
49 lines (48 loc) · 1.05 KB
/
oocairo-scm-0.rockspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package = "oocairo"
version = "scm-0"
local versionNumber = version:gsub("^(.*)-.-$", "%1")
source = {
url = "https://github.com/awesomeWM/oocairo/archive/master.zip",
dir = "oocairo-master",
}
description = {
summary = "Cairo bindings for lua ",
homepage = "https://github.com/awesomeWM/oocairo",
license = "MIT/X11",
detailed = [[
Lua-OOCairo provides Lua with full access to the Cairo vector graphics API.
It can be used for drawing onto bitmap images and saving the resulting files
in PNG format, or for generating files in vector formats like SVG and PDF.
]],
}
dependencies = {
"lua >= 5.1, < 5.4",
}
external_dependencies = {
CAIRO = {
header = "cairo/cairo.h",
library = "cairo",
}
}
build = {
type = "builtin",
modules = {
oocairo = {
defines = {
"VERSION=\""..versionNumber.."\""
},
sources = {
"oocairo.c",
},
libraries = {
"cairo"
},
incdirs = {
"$(CAIRO_INCDIR)/cairo"
},
libdirs = {
"$(CAIRO_LIBDIR)"
},
},
}
}