# Maintainer: Omarchy pkgname=superwhisper-bin pkgver=0.1.0beta15 _version=0.1.0-beta.15 pkgrel=1 pkgdesc='Local and cloud voice dictation with Superwhisper' arch=('x86_64') url='https://superwhisper.com' license=('LicenseRef-proprietary' 'MIT') provides=('superwhisper') conflicts=('superwhisper') depends=('glibc' 'libgcc' 'libstdc++' 'libgomp' 'xdg-utils' 'python' 'python-gobject' 'python-cairo' 'gtk4' 'gtk4-layer-shell' 'at-spi2-core' 'pipewire-pulse' 'libnotify' 'wl-clipboard' 'ffmpeg' 'vulkan-icd-loader' 'librsvg' 'fontconfig' 'hicolor-icon-theme' 'foot') optdepends=('fcitx5: insert dictation directly through the input method' 'vulkan-intel: local processing on Intel GPUs' 'vulkan-radeon: local processing on AMD GPUs') makedepends=('minisign') options=('!debug' '!strip') _release="https://tux.superwhisper.com/x86_64/v$_version/superwhisper-omarchy-x86_64-$_version.tar.zst" source=("superwhisper-$pkgver.tar.zst::$_release" "superwhisper-$pkgver.tar.zst.minisig::$_release.minisig" 'linux-release.pub' 'superwhisper' 'superwhisper.service' 'superwhisper.desktop' 'superwhisper-url.desktop' 'setup-user') noextract=("superwhisper-$pkgver.tar.zst") sha256sums=('99e44cbeb60c44945d2713144f12d0a356b1dfb98ed5702b5468fb6b47ae49c0' '4d933540a9299f5f7835d1f6494ce3facad866c477cdf0e82bf3e9ae5813325d' '0672b5230ed6390f9168eaea009c6ce1e8838f0961a87888d9073d1e1db5267d' '54a0fd574f2b123af24031e910fe0dc47be1d4c055ee5df775f1c681e6201c93' '8b9a2cb81a6ea015d663c9981ba67edafe934eb0e56904fab5030fbbfdd8506b' 'c65169c8432223f26b072c8defe9ff65ef82c26be34cd92a9617ed112cb22570' 'e67978d239e12a386ec335346b14e10cc7e3bed8b9b1d4bcbed4377f10d4695a' 'ffbf2f42e403fca85eb73810742397884fbf949b715ed33cb98f618f33556c16') prepare() { minisign -Vm "superwhisper-$pkgver.tar.zst" -x "superwhisper-$pkgver.tar.zst.minisig" -p linux-release.pub bsdtar -xf "superwhisper-$pkgver.tar.zst" local bundle="superwhisper-omarchy-x86_64-$_version" [[ $(< "$bundle/VERSION") == "$_version" ]] || return 1 # Qt 6.12 adds a Color type that shadows Omarchy's palette singleton. python - "superwhisper-omarchy-x86_64-$_version/app/assets/omarchy-plugin/superwhisper-panel" <<'PYTHON' from pathlib import Path import re import sys for path in Path(sys.argv[1]).glob("*.qml"): original = path.read_text() updated = re.sub(r"(? "$pkgdir/usr/share/fcitx5/addon/superwhisper.conf" }