local git_ref = '7db44d0bb760120142cc1e8f43e44976de59c2f6'
local modrev = 'scm'
local specrev = '1'

local repo_url = 'https://github.com/frabjous/knap'

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

description = {
  summary = 'Neovim plugin for creating live-updating-as-you-type previews of LaTeX, markdown, and other files in the viewer of your choice.',
  detailed = '',
  labels = { 'neovim' } ,
  homepage = 'https://github.com/frabjous/knap',
  license = 'GPL-3.0'
}

dependencies = { 'lua >= 5.1' } 

test_dependencies = { }

source = {
  url = repo_url .. '/archive/' .. git_ref .. '.zip',
  dir = 'knap-' .. '7db44d0bb760120142cc1e8f43e44976de59c2f6',
}

if modrev == 'scm' or modrev == 'dev' then
  source = {
    url = repo_url:gsub('https', 'git')
  }
end

build = {
  type = 'builtin',
  copy_directories = { 'doc' } ,
}
