cask "ifunbox" do
  version "1.8"
  sha256 "19bef7c6079cb3d13dc109478c473e420643e3164ed02b668f76220f60884a11"

  url "http://dl.i-funbox.com/updates/ifunbox.mac/#{version}/ifunboxmac.dmg"
  name "iFunBox"
  desc "File management software for iPhone and other Apple products"
  homepage "https://www.i-funbox.com/"

  livecheck do
    url "http://dl.i-funbox.com/updates/ifunbox.mac/update.xml"
    strategy :sparkle
  end

  app "iFunBox.app"

  zap trash: [
    "~/Library/Caches/com.iFunBoxDevTeam.iFunBox",
    "~/Library/Preferences/com.iFunBoxDevTeam.iFunBox.plist",
  ]
end
