cask "camed" do
  version "3.2.2"
  sha256 "407e101a3a47566395606b03114388f94f48b488d3fa27041aecb937eb43bd12"

  url "https://downloads.sourceforge.net/camprocessor/CAMEd-#{version}-macosx-cocoa-x86_64.tar.gz"
  name "CAM Editor"
  desc "XML editor"
  homepage "https://sourceforge.net/projects/camprocessor/"

  livecheck do
    url "https://sourceforge.net/projects/camprocessor/files/CAM%20Editor/Releases/"
    regex(%r{CAM%20Editor/Releases/(\d+(?:\.\d+)+)}i)
    strategy :page_match
  end

  app "CAMEd-#{version}/CAMed.app"
end
