local git_ref = 'd126061b624e0af6c3a556428712dd4d4194ec6d'
local modrev = 'scm'
local specrev = '1'

local repo_url = 'https://github.com/hrsh7th/cmp-cmdline'

rockspec_format = '3.0'
package = 'cmp-cmdline'
version = modrev ..'-'.. specrev

description = {
  summary = 'nvim-cmp source for vim\'s cmdline',
  detailed = '',
  labels = { 'neovim' } ,
  homepage = 'https://github.com/hrsh7th/cmp-cmdline',
  license = 'MIT'
}

dependencies = { 'lua >= 5.1' } 

test_dependencies = { }

source = {
  url = repo_url .. '/archive/' .. git_ref .. '.zip',
  dir = 'cmp-cmdline-' .. 'd126061b624e0af6c3a556428712dd4d4194ec6d',
}

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

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