-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathluagcrypt-scm-0.rockspec
70 lines (65 loc) · 1.33 KB
/
luagcrypt-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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
package = "luagcrypt"
version = "scm-0"
source = {
url = "git://github.com/Lekensteyn/luagcrypt.git",
}
description = {
summary = "A Lua interface to the Libgcrypt library",
detailed = [[
Luagcrypt is a Lua binding to the Libgcrypt cryptographic library.
Symmetric encryption/decryption (AES, etc.) and hashing (MD5, SHA-1, SHA-2,
etc.) are supported.
]],
homepage = "https://github.com/Lekensteyn/luagcrypt",
license = "MIT"
}
dependencies = {
"lua >= 5.1"
}
external_dependencies = {
LIBGCRYPT = {
header = "gcrypt.h",
},
platforms = {
unix = {
LIBGCRYPT = {
library = "gcrypt"
}
},
windows = {
LIBGCRYPT = {
--library = "libgcrypt-11", -- Libgcrypt 1.5
library = "libgcrypt-20", -- Libgcrypt 1.6
}
}
}
}
build = {
type = "builtin",
modules = {
luagcrypt = {
sources = {"luagcrypt.c"},
incdirs = {"$(LIBGCRYPT_INCDIR)"},
libdirs = {"$(LIBGCRYPT_LIBDIR)"},
}
},
platforms = {
unix = {
modules = {
luagcrypt = {
libraries = {"gcrypt"},
}
}
},
windows = {
modules = {
luagcrypt = {
libraries = {
--"libgcrypt-11", -- Libgcrypt 1.5
"libgcrypt-20", -- Libgcrypt 1.6
},
}
}
}
}
}