local git_ref = '0.10'
local modrev = git_ref
local specrev = '1'

rockspec_format = '3.0'
package = 'xurl'
version = modrev .. '-' .. specrev

description = {
  summary = 'Allow URL breaks at any alphanumerical character',
  detailed =
  [[This package loads url by default and defines possible URL breaks for all alphanumerical characters, as well as = / . : * - ~ ' "

All arguments which are valid for url can be used and will be passed on to this package. For more information read the documentation of url itself.]],
  labels = { 'Verbatim' },
  homepage = "https://ctan.org/pkg/xurl",
  license = 'LPPL-1.3'
}

dependencies = { 'latex-url', 'filecontents' }

source = {
  url = "https://github.com/ustctug/texrocks/releases/download/0.0.1/xurl.zip",
  dir = "xurl"
}

if modrev == 'scm' or modrev == 'dev' then
  source = {
    url = 'https://mirrors.ctan.org/macros/latex/contrib/xurl.zip',
    dir = "xurl"
  }
end

build = {
  type = 'none',
  install = {
    conf = {
      ['../tex/latex/xurl/xurl.sty'] = 'latex/xurl.sty',
      ['../doc/latex/xurl/xurl.pdf'] = 'doc/xurl.pdf',
    }
  }
}
