blob: d7f043a2c77c5b596aba5b07c31733b897e24136 (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Maintainer: Jesus Alvarez <jesusalv@rez.codes>
pkgname=supersayer
pkgver=1.4.1
pkgrel=1
pkgdesc="Speech-to-text input tool for GNOME using whisper.cpp and PyGTK"
arch=('any')
url="https://git.ironandcode.com/jesusa/supersayer"
license=('MIT')
depends=(
'python'
'python-cyclopts'
'python-evdev'
'python-numpy'
'python-pydantic'
'python-pydantic-settings'
'python-gobject'
'python-rich'
'python-sounddevice'
'pipewire-alsa'
'gtk4'
'libadwaita'
'wl-clipboard'
'whisper.cpp'
'whisper.cpp-model-small.en'
)
makedepends=('python-build' 'python-installer' 'python-wheel' 'python-hatchling')
optdepends=(
'whisper.cpp-model-medium.en: higher accuracy model'
'whisper.cpp-cuda: replace whisper.cpp with CUDA build for GPU acceleration'
)
install=supersayer.install
source=("$pkgname-$pkgver.tar.gz::https://git.ironandcode.com/jesusa/supersayer/archive/v$pkgver.tar.gz")
sha256sums=('ae009a89478daf7748f55e8fd9673d0f98d06e255a24cc926344649b648b0892')
prepare() {
# Forgejo archives extract to $pkgname/, local sdists to $pkgname-$pkgver/.
[ -d "$pkgname" ] || mv "$pkgname-$pkgver" "$pkgname"
}
build() {
cd "$pkgname"
python -m build --wheel --no-isolation
}
package() {
cd "$pkgname"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|