excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / a / abbyy-finereader-pdf.rb
blob9b8bd06410571f720d4f93325a7e4eca9c989555
1 cask "abbyy-finereader-pdf" do
2   version "1402.19"
3   sha256 :no_check
5   url "https://downloads.abbyy.com/fr/fr_mac/current/ABBYY_FineReader_PDF.dmg?secure=5c11NlPrQmIZeGn6dK2PZA=="
6   name "ABBYY FineReader PDF"
7   desc "Scan, OCR, and convert documents to searchable PDFs and other formats"
8   homepage "https://pdf.abbyy.com/finereader-pdf-for-mac/"
10   livecheck do
11     url "https://www.abbyy.com/finereader-pdf-mac-downloads/"
12     regex(%r{>\s*Part\s+#:.*?<td>\s*v?(\d+(?:[./]\d+)+)\s*<}im)
13     strategy :page_match do |page, regex|
14       page.scan(regex).map { |match| match[0].tr("/", ".") }
15     end
16   end
18   depends_on macos: ">= :big_sur"
20   app "ABBYY FineReader PDF.app"
22   zap trash: [
23     "~/Library/Application Support/ABBYY",
24     "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.abbyy.finereader.sfl*",
25     "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.abbyy.frpdfviewer.sfl*",
26     "~/Library/Preferences/com.abbyy.finereader.pdf.plist",
27     "~/Library/Preferences/com.abbyy.FineReader.plist",
28     "~/Library/Preferences/com.abbyy.FRPDFViewer.plist",
29     "~/Library/Preferences/com.abbyy.ImageProcessService*.plist",
30     "~/Library/Saved Application State/com.abbyy.FineReader.savedState",
31     "~/Library/Saved Application State/com.abbyy.FRPDFViewer.savedState",
32   ]
34   caveats do
35     requires_rosetta
36   end
37 end