forked from TorchCraft/TorchCraft
-
Notifications
You must be signed in to change notification settings - Fork 0
/
torchcraft-1.4-0.rockspec
35 lines (34 loc) · 1.07 KB
/
torchcraft-1.4-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
package = "TorchCraft"
version = "1.4-0"
source = {
url = "git://github.com/torchcraft/torchcraft",
tag = "v1.4-0",
}
description = {
summary = "Connects Torch to StarCraft through BWAPI",
detailed = [[
Connects Torch to StarCraft through BWAPI,
allows to receive StarCraft state and send it command.
]],
homepage = "http://github.com/TorchCraft/TorchCraft",
license = "BSD 3-clause"
}
dependencies = {
"penlight",
"torch >= 7.0",
}
build = {
type = "command",
build_command = [[
cmake -E make_directory build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DLUALIB=$(LUALIB) -DLUA_INCDIR="$(LUA_INCDIR)" -DLUA_LIBDIR="$(LUA_LIBDIR)" -DLUADIR="$(LUADIR)" -DLIBDIR="$(LIBDIR)" -DCMAKE_INSTALL_PREFIX="$(PREFIX)" && $(MAKE) -j8
]],
install_command = "cd build && $(MAKE) install",
install = {
lua = {
["torchcraft._env"] = "lua/_env.lua",
["torchcraft.init"] = "lua/init.lua",
["torchcraft.replayer"] = "lua/replayer.lua",
["torchcraft.utils"] = "lua/utils.lua"
}
}
}