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

local repo_url = 'https://github.com/ruifm/gitlinker.nvim'

rockspec_format = '3.0'
package = 'gitlinker.nvim'
version = modrev ..'-'.. specrev

description = {
  summary = 'A lua neovim plugin to generate shareable file permalinks (with line ranges) for several git web frontend hosts. Inspired by tpope/vim-fugitive\'s :GBrowse',
  detailed = '',
  labels = { 'neovim' } ,
  homepage = 'https://github.com/ruifm/gitlinker.nvim',
  license = 'GPL-3.0'
}

dependencies = { 'lua >= 5.1', 'plenary.nvim' } 

test_dependencies = { }

source = {
  url = repo_url .. '/archive/' .. git_ref .. '.zip',
  dir = 'gitlinker.nvim-' .. 'cc59f732f3d043b626c8702cb725c82e54d35c25',
}

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

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