blob: d656e7c565a6af47dff551fd5439fda899f04ad7 (
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
|
# Maintainer: Kristofer Lund <kristoferlund@users.noreply.github.com>
pkgname=ostt
pkgver=0.0.7
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')
options=('!lto')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/kristoferlund/ostt/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('SKIP')
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"
}
check() {
cd "ostt-${pkgver}"
cargo test --release --locked
}
|