whisper-cpp-sdl
LOW
maintainer milkii
0 votes
scanned 2026-08-21 21:15:20.444724
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
12
pkgname=whisper-cpp-sdl
13
pkgver=1.9.1
14
pkgrel=1
15
pkgdesc="Port of OpenAI's Whisper model in C/C++ (with SDL2 examples, system ggml)"
16
arch=('x86_64' 'aarch64')
17
url="https://github.com/ggml-org/whisper.cpp"
18
license=("MIT")
19
depends=(
20
'ffmpeg'
21
'ggml'
22
'glibc'
23
'libgcc'
24
'libstdc++'
25
'sdl2'
26
)
27
makedepends=(
28
'cmake'
29
'git'
30
'ninja'
31
)
32
conflicts=("whisper-cpp")
33
provides=("whisper-cpp")
34
source=(
35
"${_pkgbase}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz"
36
"whisper.cpp.service"
37
"whisper.cpp.conf"
38
)
39
sha256sums=(
40
'147267177eef7b22ec3d2476dd514d1b12e160e176230b740e3d1bd600118447'
41
'd67695c9f259a50c23cbff08e5105b1d127b75336909f5f61d1fa87901826801'
42
'ce241dc37fb9724842eead940bda305f9b4a6dc7e426151c8e8cd8b34d4a1262'
43
)
44
45
prepare() {
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
53
build() {
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
66
package() {
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) | Severity | Rules |
|---|---|---|
| 2026-08-21 21:15:20 | Low | 1 |