voicestudio-git

LOW
maintainer debpalash 0 votes scanned 2026-11-02 12:02:29.906667
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: Palash Debnath <aur at palash dot dev>
2pkgname=voicestudio-git
3pkgver=0.5.7.r6387.g1a29929
4pkgrel=1
5pkgdesc='Local AI voice studio: cloning, speech, dubbing and transcription (development sources)'
6arch=('x86_64')
7url='https://voicestudio.sh'
8license=('AGPL-3.0-only')
9depends=(
10 'alsa-lib' 'at-spi2-core' 'gcc-libs' 'glibc' 'gtk3' 'libdrm' 'libnotify'
11 'libsecret' 'libx11' 'libxcomposite' 'libxdamage' 'libxfixes' 'libxkbcommon'
12 'libxrandr' 'libxss' 'libxtst' 'mesa' 'nspr' 'nss' 'openssl'
13 'util-linux-libs' 'vulkan-icd-loader' 'wayland' 'xdg-utils' 'xdotool'
14)
15makedepends=(
16 'bun>=1.4.2' 'cmake' 'git' 'ninja' 'nodejs>=22.12' 'npm' 'pkgconf'
17 'rust' 'shaderc' 'spirv-headers' 'uv' 'vulkan-headers'
18)
19optdepends=(
20 'libappindicator-gtk3: tray integration on compatible desktops'
21 'xdg-desktop-portal: native file dialogs and desktop integration'
22)
23provides=("voicestudio=$pkgver")
24conflicts=('voicestudio')
25# makepkg's GCC LTO objects cannot be consumed by Rust's LLVM linker when
26# linking the locked aws-lc-sys dependency. Keep the toolchains compatible.
27options=('!strip' '!debug' '!lto')
28source=('voicestudio::git+https://github.com/debpalash/VoiceStudio.git#branch=main')
29sha256sums=('SKIP')
30
31pkgver() {
32 cd "$srcdir/voicestudio"
33 printf '%s.r%s.g%s' \
34 "$(node -p "JSON.parse(require('fs').readFileSync('package.json', 'utf8')).version.replaceAll('-', '.')")" \
35 "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
36}
37
38prepare() {
39 cd "$srcdir/voicestudio"
40 export ELECTRON_SKIP_BINARY_DOWNLOAD=1
41 bun install --frozen-lockfile
42 CARGO_HOME="$srcdir/cargo-home" cargo fetch --locked \
43 --manifest-path native/desktop-bridge/Cargo.toml \
44 --target x86_64-unknown-linux-gnu
45}
46
47build() {
48 cd "$srcdir/voicestudio"
49 export CARGO_HOME="$srcdir/cargo-home"
50 export CARGO_NET_OFFLINE=true
51 export VOICESTUDIO_BUNDLED_UV=/usr/bin/uv
52 export VOICESTUDIO_RUST_TARGET=x86_64-unknown-linux-gnu
53 export VOICESTUDIO_OMNIVOICE_TTS_PLATFORM=linux-x86_64
54 export OMNIVOICE_BUILD_JOBS="${OMNIVOICE_BUILD_JOBS:-2}"
55
56 # Build the same pinned GGUF runtime as the official release, including
57 # runtime-dispatched CPU variants and the optional Vulkan backend.
58 local runtime_commit
59 runtime_commit=$(node -p "JSON.parse(require('fs').readFileSync('backend/engines/omnivoice_gguf/quant_map.json', 'utf8'))._meta.runtime_commit_sha")
60 (
61 # The pinned runtime defines FORTIFY_SOURCE=2 itself. Arch's default =3
62 # conflicts with that definition and breaks its -Werror ABI check. Keep
63 # the upstream level for this build, retaining all other makepkg flags.
64 export CFLAGS="$(sed -E 's/-D_FORTIFY_SOURCE=[0-9]+/-D_FORTIFY_SOURCE=2/g' <<< "$CFLAGS")"
65 export CXXFLAGS="$(sed -E 's/-D_FORTIFY_SOURCE=[0-9]+/-D_FORTIFY_SOURCE=2/g' <<< "$CXXFLAGS")"
66 export CPPFLAGS="$(sed -E 's/-D_FORTIFY_SOURCE=[0-9]+/-D_FORTIFY_SOURCE=2/g' <<< "$CPPFLAGS")"
67 bash scripts/build-omnivoice-tts.sh --platform linux-x86_64 --commit-sha "$runtime_commit"
68 )
69 install -d electron/build/omnivoice-tts
70 cp -a bin/. electron/build/omnivoice-tts/
71
72 # Electron, the renderer, web UI and native bridge use upstream's packaging
73 # path. Python engines and model weights are installed by the user's setup.
74 bun run dist:dir
75 node electron/tests/packaging-contract.mjs --artifact
76}
77
78package() {
79 cd "$srcdir/voicestudio"
80 install -d "$pkgdir/opt/VoiceStudio"
81 cp -a electron/release/linux-unpacked/. "$pkgdir/opt/VoiceStudio/"
82 chmod 4755 "$pkgdir/opt/VoiceStudio/chrome-sandbox"
83
84 install -d "$pkgdir/usr/bin"
85 cat > "$pkgdir/usr/bin/voicestudio" <<'EOF'
86#!/bin/sh
87export VOICESTUDIO_DISABLE_UPDATER=1
88exec /opt/VoiceStudio/voicestudio-electron "$@"
89EOF
90 chmod 755 "$pkgdir/usr/bin/voicestudio"
91
92 install -d "$pkgdir/usr/share/applications"
93 cat > "$pkgdir/usr/share/applications/voicestudio.desktop" <<'EOF'
94[Desktop Entry]
95Type=Application
96Name=VoiceStudio
97Comment=Local AI voice studio
98Exec=voicestudio %U
99Icon=voicestudio
100Terminal=false
101Categories=AudioVideo;Audio;
102StartupWMClass=voicestudio-electron
103EOF
104 install -Dm644 docs/logo.svg \
105 "$pkgdir/usr/share/icons/hicolor/scalable/apps/voicestudio.svg"
106 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
107 install -Dm644 LICENSE-NOTICE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE-NOTICE.md"
108}
109

Scan history

Scanned at (UTC)SeverityRules
2026-11-02 12:02:29 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