-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbookmark-scm-1.rockspec
51 lines (43 loc) · 1.55 KB
/
bookmark-scm-1.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
local git_ref = 'scm'
local modrev = git_ref
local specrev = '1'
local repo_url = 'https://ctan.org/pkg/bookmark'
rockspec_format = '3.0'
package = 'bookmark'
version = modrev .. '-' .. specrev
description = {
summary = [[A new bookmark (outline) organization for hyperref]],
detailed =
[[This package implements a new bookmark (outline) organization for package hyperref. Bookmark properties such as style and color can now be set. Other action types are available (URI, GoToR, Named). The bookmarks are generated in the first compile run. Package hyperref uses two runs.]],
labels = { 'tex', 'latex' },
homepage = 'https://github.com/ho-tex/bookmark',
license = 'LPPL-1.3c'
}
build_dependencies = { 'lualatex', 'texrocks', 'latex-base' }
dependencies = { 'hyperref' }
source = {
url = repo_url .. '/archive/' .. git_ref .. '.zip',
dir = package .. '-' .. modrev,
}
if modrev == 'scm' or modrev == 'dev' then
source = {
url = 'https://mirrors.ctan.org/macros/latex/contrib/bookmark.zip',
}
end
build = {
type = 'command',
build_command = [[
texrocks install &&
lualatex --interaction=nonstopmode bookmark.ins
]],
install = {
conf = {
['../tex/latex/bookmark/bkm-dvipdfm.def'] = 'bkm-dvipdfm.def',
['../tex/latex/bookmark/bkm-dvips.def'] = 'bkm-dvips.def',
['../tex/latex/bookmark/bkm-pdftex.def'] = 'bkm-pdftex.def',
['../tex/latex/bookmark/bkm-vtex.def'] = 'bkm-vtex.def',
['../tex/latex/bookmark/bookmark.sty'] = 'bookmark.sty',
['../doc/latex/bookmark/bookmark.pdf'] = 'bookmark.pdf',
}
}
}