blob: c9561fd944451b3845c42ab2e4931927044d4d32 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# Maintainer: zweck
pkgname=whisper-toggle
pkgver=1.0.0
pkgrel=1
pkgdesc="Single-keybinding speech-to-text for Linux — press once to record, press again to transcribe and paste"
arch=('any')
url="https://github.com/zweck/whisper-toggle"
license=('MIT')
depends=(
'bash'
'sox'
'curl'
'jq'
'libnotify'
'libpulse'
)
optdepends=(
'whisper.cpp: speech recognition engine (or build from source)'
'xsel: clipboard support on X11'
'xdotool: auto-paste on X11'
'wl-clipboard: clipboard support on Wayland'
'ydotool: auto-paste on Wayland'
'pciutils: GPU detection in setup wizard'
)
install=whisper-toggle.install
source=("$pkgname-$pkgver.tar.gz::https://github.com/zweck/whisper-toggle/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('SKIP')
package() {
cd "$pkgname-$pkgver"
install -Dm755 bin/whisper-toggle "$pkgdir/usr/bin/whisper-toggle"
install -Dm755 bin/whisper-toggle-setup "$pkgdir/usr/bin/whisper-toggle-setup"
install -Dm644 config/whisper-toggle.conf "$pkgdir/usr/share/whisper-toggle/whisper-toggle.conf"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|