whisper-cpp-sdl

LOW
maintainer milkii 0 votes scanned 2026-08-21 21:15:20.444724
View on AUR
Why flagged

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

Triggered rules

Low Few votes, recently uploaded zero_votes_recent

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

PKGBUILD

1# Maintainer: malkiii <https://github.com/mxmilkiib>
2# Contributor: Orion-zhen <https://github.com/Orion-zhen>
3
4# Based on the official extra/whisper-cpp PKGBUILD by Maxime Gauduin.
5# Adds SDL2 support so whisper-stream, whisper-command, whisper-lsp, and
6# wchess are built. Uses system ggml (provided by llama.cpp-gfx1151,
7# llama.cpp-vulkan, llama.cpp-hip, or extra/ggml) for GPU acceleration.
8# talk-llama is disabled — it breaks against current system ggml's
9# ggml_ssm_scan API and is a voice chat demo, not needed for dictation.
10
11_pkgbase=whisper.cpp
12pkgname=whisper-cpp-sdl
13pkgver=1.9.1
14pkgrel=1
15pkgdesc="Port of OpenAI's Whisper model in C/C++ (with SDL2 examples, system ggml)"
16arch=('x86_64' 'aarch64')
17url="https://github.com/ggml-org/whisper.cpp"
18license=("MIT")
19depends=(
20 'ffmpeg'
21 'ggml'
22 'glibc'
23 'libgcc'
24 'libstdc++'
25 'sdl2'
26)
27makedepends=(
28 'cmake'
29 'git'
30 'ninja'
31)
32conflicts=("whisper-cpp")
33provides=("whisper-cpp")
34source=(
35 "${_pkgbase}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz"
36 "whisper.cpp.service"
37 "whisper.cpp.conf"
38)
39sha256sums=(
40 '147267177eef7b22ec3d2476dd514d1b12e160e176230b740e3d1bd600118447'
41 'd67695c9f259a50c23cbff08e5105b1d127b75336909f5f61d1fa87901826801'
42 'ce241dc37fb9724842eead940bda305f9b4a6dc7e426151c8e8cd8b34d4a1262'
43)
44
45prepare() {
46 cd "${_pkgbase}-${pkgver}"
47 # talk-llama uses ggml_ssm_scan with the old 8-arg signature; system ggml
48 # now requires a 9th arg (int64_t K). Disable it — it's a voice chat demo,
49 # not needed for whisper-stream/whisper-server/dictation
50 sed -i '/add_subdirectory(talk-llama)/d' examples/CMakeLists.txt
51}
52
53build() {
54 cmake -S "${_pkgbase}-${pkgver}" -B build -G Ninja \
55 -DCMAKE_BUILD_TYPE=Release \
56 -DCMAKE_INSTALL_PREFIX=/usr \
57 -DWHISPER_COMMON_FFMPEG=ON \
58 -DWHISPER_BUILD_EXAMPLES=ON \
59 -DWHISPER_BUILD_SERVER=ON \
60 -DWHISPER_BUILD_TESTS=OFF \
61 -DWHISPER_SDL2=ON \
62 -DWHISPER_USE_SYSTEM_GGML=ON
63 cmake --build build
64}
65
66package() {
67 DESTDIR="${pkgdir}" cmake --install build
68
69 # wchess has no install() rule in upstream CMakeLists
70 install -Dm755 build/bin/wchess "${pkgdir}/usr/bin/wchess"
71
72 install -Dm644 "${_pkgbase}-${pkgver}/LICENSE" \
73 -t "${pkgdir}/usr/share/licenses/${pkgname}"
74
75 install -Dm644 whisper.cpp.conf \
76 "${pkgdir}/etc/conf.d/whisper.cpp"
77 install -Dm644 whisper.cpp.service \
78 "${pkgdir}/usr/lib/systemd/system/whisper.cpp.service"
79}
80

Scan history

Scanned at (UTC)SeverityRules
2026-08-21 21:15:20 Low 1

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion