Package Details: whisrs-git 0.1.28.r32.g031a2ff-1

Git Clone URL: https://aur.archlinux.org/whisrs-git.git (read-only, click to copy)
Package Base: whisrs-git
Description: Linux-first voice-to-text dictation tool, written in Rust
Upstream URL: https://github.com/y0sif/whisrs
Licenses: MIT
Conflicts: whisrs
Provides: whisrs
Submitter: y0sif
Maintainer: y0sif
Last Packager: y0sif
Votes: 0
Popularity: 0.000000
First Submitted: 2026-03-15 15:23 (UTC)
Last Updated: 2026-10-08 09:00 (UTC)

Latest Comments

graysky commented on 2026-10-04 10:03 (UTC)

Here is a fix to the PKGBUILD:

--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,47 +1,47 @@
 # Maintainer: y0sif <https://github.com/y0sif>
+_pkgname=whisrs
 pkgname=whisrs-git
-pkgver=0.1.28
+pkgver=0.1.28.r7.gd4260dd
 pkgrel=1
 pkgdesc='Linux-first voice-to-text dictation tool, written in Rust'
-arch=('x86_64')
+arch=(x86_64)
 url='https://github.com/y0sif/whisrs'
-license=('MIT')
-depends=('gcc-libs' 'alsa-lib' 'libxkbcommon')
-makedepends=('cargo' 'clang' 'cmake' 'git')
-provides=('whisrs')
-conflicts=('whisrs')
+license=(MIT)
+depends=(gcc-libs alsa-lib libxkbcommon)
+makedepends=(git cargo clang cmake)
+provides=($_pkgname)
+conflicts=($_pkgname)
 options=('!lto')
-source=("git+https://github.com/y0sif/whisrs.git")
+source=("git+$url.git")
 sha256sums=('SKIP')

 pkgver() {
-  cd whisrs
-  git describe --long --tags 2>/dev/null | sed 's/^v//;s/-/.r/;s/-/./' \
-    || printf '0.1.0.r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+  cd $_pkgname
+  git describe --long --tags --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
 }

 prepare() {
-  cd whisrs
+  cd $_pkgname
   export RUSTUP_TOOLCHAIN=stable
   cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
 }

 build() {
-  cd whisrs
+  cd $_pkgname
   export RUSTUP_TOOLCHAIN=stable
   export CARGO_TARGET_DIR=target
-  cargo build --frozen --release --all-targets
+  cargo build --frozen --release
 }

 check() {
-  cd whisrs
+  cd $_pkgname
   export RUSTUP_TOOLCHAIN=stable
   export CARGO_TARGET_DIR=target
   cargo test --frozen --release
 }

 package() {
-  cd whisrs
+  cd $_pkgname

   install -Dm755 target/release/whisrs "$pkgdir/usr/bin/whisrs"
   install -Dm755 target/release/whisrsd "$pkgdir/usr/bin/whisrsd"

y0sif commented on 2026-05-20 16:14 (UTC)

Thanks for the report, fixed in 0.1.14.

Sathors commented on 2026-05-20 15:11 (UTC)

The systemd user service file that gets installed points to ExecStart=%h/.cargo/bin/whisrsd right now, so it fails when starting. It should point to /usr/bin/whisrd instead.

y0sif commented on 2026-05-02 20:13 (UTC)

Thanks for the report, just pushed a fix. Went with options=('!lto') instead of stripping flags in build(): it's the canonical fix per makepkg.conf(5), and it covers LDFLAGS too (which lto injects -flto=auto into alongside CFLAGS/CXXFLAGS)

roocker commented on 2026-05-02 18:29 (UTC)

Build fails when 'lto' is enabled in OPTIONS in /etc/makepkg.conf (which is the current Arch Linux default). The -flto=auto flag gets picked up by ring's build script and cmake when building whisper.cpp, producing LTO object files that can't be linked against Rust.

Fix: add the following to build() in the PKGBUILD:

export CFLAGS="${CFLAGS/-flto=auto/}"
export CXXFLAGS="${CXXFLAGS/-flto=auto/}"