local git_ref = 'v1.31' local modrev = git_ref:gsub("^v", "") local specrev = '1' rockspec_format = '3.0' package = 'bookmark' version = modrev .. '-' .. specrev local repo_url = 'https://github.com/ho-tex/bookmark' 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 = { 'Hyper' }, homepage = repo_url, license = 'LPPL-1.3c' } build_dependencies = { 'lualatex', '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', dir = 'bookmark' } end build = { type = 'l3build', }