homebrew-cask/Casks/gramps.rb

21 lines
680 B
Ruby

cask "gramps" do
version "5.1.3,4"
sha256 "30d4a44d2900c3c8519f90e0b2f7236d3859002b8ba30596b0900c5634a80f33"
url "https://github.com/gramps-project/gramps/releases/download/v#{version.before_comma}/Gramps-Intel-#{version.before_comma}-#{version.after_comma}.dmg",
verified: "github.com/gramps-project/gramps/"
name "Gramps"
desc "Genealogy software"
homepage "https://gramps-project.org/blog/"
livecheck do
url "https://github.com/gramps-project/gramps/releases/latest"
strategy :page_match do |page|
match = page.match(%r{href=.*?/Gramps-Intel-(\d+(?:.\d+)*)-(\d+)\.dmg}i)
"#{match[1]},#{match[2]}"
end
end
app "Gramps.app"
end