3 sha256 "2938653604517bf664e51a5ae071e14d37dc46c7f368c8427b1f76d01b5e0413"
5 url "https://origin.pfultd.com/downloads/hhkbstudio/mac/HHKBStudiokeymapTool_#{version.no_dots}ma.dmg",
6 verified: "origin.pfultd.com/downloads/hhkbstudio/mac/"
7 name "Happy Hacking Keyboard Studio Keymap Tool"
8 desc "Customize keymap, shortcuts, and gesture pad behavior on HHKB Studio"
9 homepage "https://happyhackingkb.com/"
12 url "https://happyhackingkb.com/download/"
13 regex(%r{macOS\s*</td>.*?HHKBStudiokeymapTool[._-]v?\d+(?:\.\d+)*[^.]*?\.dmg.*?>\s*v?(\d+(?:\.\d+)+)\s*<}im)
16 depends_on macos: ">= :big_sur"
18 pkg "HHKBStudiokeymapTool_#{version.no_dots}ma.pkg"
20 uninstall quit: "jp.co.pfu.hhkb-studio-keymap-tool",
21 pkgutil: "jp.co.pfu.hhkb-studio-keymap-tool.pkg.V#{version}",
23 "/Applications/hhkb-studio-keymap-tool*",
24 "/Applications/HHKBStudio/EULA_*.rtf",
25 "/Applications/HHKBStudio/OSS_License.txt",
27 rmdir: "/Applications/HHKBStudio"
30 "~/Library/Application Support/hhkb-keymap-tool/Studio/*.log",
31 "~/Library/Preferences/jp.co.pfu.hhkb-studio-keymap-tool.plist",
33 rmdir: "~/Library/Application Support/hhkb-keymap-tool/Studio/"