blob: bf7dbe71ec94369b68f207272f96d43fee345dfd (
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
|
pkgname=whispers-bin
pkgver=0.2.4
pkgrel=1
pkgdesc='Local-first speech-to-text dictation for Wayland (prebuilt release bundle)'
arch=('x86_64')
url='https://github.com/OneNoted/whispers'
license=('MIT')
depends=('alsa-lib' 'gcc-libs' 'glibc' 'noto-fonts' 'wl-clipboard')
optdepends=('python: experimental faster-whisper and NeMo runtimes')
provides=('whispers')
conflicts=('whispers' 'whispers-git' 'whispers-cuda-bin' 'whispers-cuda-git' 'whispers-vulkan-bin' 'whispers-vulkan-git')
source=(
"$pkgname-$pkgver.tar.gz::$url/releases/download/v$pkgver/whispers-$pkgver-x86_64-unknown-linux-gnu.tar.gz"
)
sha256sums=('b49316cd7ddf51750a07fdd5676d94fdc0c663acc8f8bc19f689031c86f83b98')
package() {
local bundle_dir="$srcdir/whispers-$pkgver-x86_64-unknown-linux-gnu"
install -Dm755 "$bundle_dir/bin/whispers" \
"$pkgdir/usr/bin/whispers"
install -Dm755 "$bundle_dir/bin/whispers-osd" \
"$pkgdir/usr/bin/whispers-osd"
install -Dm755 "$bundle_dir/bin/whispers-rewrite-worker" \
"$pkgdir/usr/bin/whispers-rewrite-worker"
install -Dm644 "$bundle_dir/share/bash-completion/completions/whispers" \
"$pkgdir/usr/share/bash-completion/completions/whispers"
install -Dm644 "$bundle_dir/share/zsh/site-functions/_whispers" \
"$pkgdir/usr/share/zsh/site-functions/_whispers"
install -Dm644 "$bundle_dir/share/fish/vendor_completions.d/whispers.fish" \
"$pkgdir/usr/share/fish/vendor_completions.d/whispers.fish"
install -Dm644 "$bundle_dir/share/doc/whispers/README.md" \
"$pkgdir/usr/share/doc/whispers/README.md"
install -Dm644 "$bundle_dir/share/doc/whispers/config.example.toml" \
"$pkgdir/usr/share/doc/whispers/config.example.toml"
install -Dm644 "$bundle_dir/share/doc/whispers/RELEASE-BUNDLE.txt" \
"$pkgdir/usr/share/doc/whispers/RELEASE-BUNDLE.txt"
install -Dm644 "$bundle_dir/share/licenses/whispers/LICENSE" \
"$pkgdir/usr/share/licenses/whispers/LICENSE"
install -Dm644 "$bundle_dir/share/licenses/whispers/NOTICE" \
"$pkgdir/usr/share/licenses/whispers/NOTICE"
}
|