blob: 5cd184670eb1e9094f3df28fc7d1a3f7df940e5b (
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
50
51
52
53
|
# Maintainer: Kristofer Lund <kristoferlund@users.noreply.github.com>
pkgname=ostt
pkgver=0.0.35
pkgrel=1
pkgdesc="Open Speech-to-Text: Terminal application for recording and transcribing audio"
arch=('x86_64' 'aarch64')
url="https://github.com/kristoferlund/ostt"
license=('MIT')
depends=(
'alsa-lib' # Audio capture (Linux)
'openssl' # TLS for API calls
'ffmpeg' # Audio format conversion
)
optdepends=(
'wl-clipboard: Clipboard support on Wayland'
'xclip: Clipboard support on X11'
)
makedepends=('cargo' 'rust' 'git' 'pkgconf' 'cmake')
options=('!lto')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/kristoferlund/ostt/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('45b354ecb043a878a88b743a1c500b86b0166cc6558fec0e96d6dee11ca3e273')
prepare() {
cd "ostt-${pkgver}"
}
build() {
cd "ostt-${pkgver}"
cargo build --release --locked
}
package() {
cd "ostt-${pkgver}"
# Install the binary (includes embedded config files)
install -Dm755 target/release/ostt "${pkgdir}/usr/bin/ostt"
# Install documentation
install -Dm644 README.md "${pkgdir}/usr/share/doc/ostt/README.md"
# Generate shell completions
mkdir -p "${pkgdir}/usr/share/bash-completion/completions"
mkdir -p "${pkgdir}/usr/share/zsh/site-functions"
mkdir -p "${pkgdir}/usr/share/fish/vendor_completions.d"
./target/release/ostt completions bash > "${pkgdir}/usr/share/bash-completion/completions/ostt"
./target/release/ostt completions zsh > "${pkgdir}/usr/share/zsh/site-functions/_ostt"
./target/release/ostt completions fish > "${pkgdir}/usr/share/fish/vendor_completions.d/ostt.fish"
}
check() {
cd "ostt-${pkgver}"
cargo test --release --locked
}
|