/Food/ripgrep.lua

https://github.com/fishworks/fish-food · Lua · 51 lines · 50 code · 1 blank · 0 comment · 2 complexity · 6f8695790f43978e6334254a67a2fc37 MD5 · raw file

  1. local name = "ripgrep"
  2. local bin = "rg"
  3. local version = "12.1.1"
  4. food = {
  5. name = name,
  6. description = "Recursively searches directories for a regex pattern while respecting your gitignore",
  7. license = "Unlicense/MIT",
  8. homepage = "https://github.com/BurntSushi/ripgrep",
  9. version = version,
  10. packages = {
  11. {
  12. os = "darwin",
  13. arch = "amd64",
  14. url = "https://github.com/BurntSushi/" .. name .. "/releases/download/" .. version .. "/" .. name .. "-" .. version .. "-x86_64-apple-darwin.tar.gz",
  15. sha256 = "7ff2fd5dd3a438d62fae5866ddae78cf542b733116f58cf21ab691a58c385703",
  16. resources = {
  17. {
  18. path = name .. "-" .. version .. "-x86_64-apple-darwin/" .. bin,
  19. installpath = "bin/" .. bin,
  20. executable = true
  21. }
  22. }
  23. },
  24. {
  25. os = "linux",
  26. arch = "amd64",
  27. url = "https://github.com/BurntSushi/" .. name .. "/releases/download/" .. version .. "/" .. name .. "-" .. version .. "-x86_64-unknown-linux-musl.tar.gz",
  28. sha256 = "88d3b735e43f6f16a0181a8fec48847693fae80168d5f889fdbdeb962f1fc804",
  29. resources = {
  30. {
  31. path = name .. "-" .. version .. "-x86_64-unknown-linux-musl/" .. bin,
  32. installpath = "bin/" .. bin,
  33. executable = true
  34. }
  35. }
  36. },
  37. {
  38. os = "windows",
  39. arch = "amd64",
  40. url = "https://github.com/BurntSushi/" .. name .. "/releases/download/" .. version .. "/" .. name .. "-" .. version .. "-x86_64-pc-windows-msvc.zip",
  41. sha256 = "a74d23c8c52a7cfddab029e3217cd7aad49e970ab3ee45fa72fa5f5536230088",
  42. resources = {
  43. {
  44. path = name .. "-" .. version .. "-x86_64-pc-windows-msvc/" .. bin .. ".exe",
  45. installpath = "bin\\" .. bin .. ".exe"
  46. }
  47. }
  48. }
  49. }
  50. }