-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtemplate.rockspec
38 lines (30 loc) · 999 Bytes
/
template.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
local git_ref = '$git_ref'
local modrev = '$modrev'
local specrev = '$specrev'
local repo_url = 'https://github.com/xmake-io/xmake'
rockspec_format = '3.0'
package = 'xmake'
version = modrev ..'-'.. specrev
description = {
summary = 'A cross-platform build utility based on Lua',
detailed = '',
labels = { 'c', 'linux', 'c-plus-plus', 'package-manager', 'visual-studio', 'cmake', 'build', 'lua', 'objective-c', 'makefile', 'build-tool', 'wdk', 'xmake', 'tbox', 'cross-toolchains' } ,
homepage = 'https://luarocks.org/modules/waruqi/xmake',
license = 'GPL-3.0'
}
dependencies = { 'lua >= 5.1' }
test_dependencies = { }
source = {
url = repo_url .. '/releases/download/v' .. git_ref .. '/xmake-v' .. git_ref .. '.zip',
dir = 'xmake-' .. git_ref,
}
if modrev == 'scm' or modrev == 'dev' then
source = {
url = repo_url:gsub('https', 'git')
}
end
build = {
type = 'command',
build_command = "./configure --prefix=$(PREFIX) && make",
install_command = "make install"
}