streamcontroller
maintainer NOSDuco
· 5 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The pip install is used to install declared Python dependencies from requirements.txt within a contained venv during packaging; it does not execute untrusted remote code or install packages from ambiguous external sources beyond the project's own dependency list.
Triggered rules
LOW
AI review downgraded a static finding
llm_review
The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-2507) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The pip install is used to install declared Python dependencies from requirements.txt within a contained venv during packaging; it does not execute untrusted remote code or install packages from ambiguous external sources beyond the project's own dependency list.
1 higher static finding superseded - not the current verdict (shown for transparency)
MEDIUM
pip install of an external package
pip_install_external
`pip install <package>` fetches an unpinned package from PyPI at build time, outside source=() and makepkg's checksums.
-
PKGBUILD:29
pip install -r requirements.txt
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: nosduco <nosduco at gmail dot com>
2
pkgname=streamcontroller
3
pkgver=1.5.0beta15
4
pkgrel=1
5
_pkgver=1.5.0-beta.15
6
_reponame=StreamController-$_pkgver
7
_pkgname=${pkgname}
8
pkgdesc="An elegant Linux app for the Elgato Stream Deck with support for plugins"
9
arch=('any')
10
url="https://github.com/StreamController/StreamController"
11
license=('GPL-3')
12
depends=('python' 'xdg-desktop-portal' 'xdg-desktop-portal-gtk' 'libportal' 'libportal-gtk4' 'libadwaita' 'gobject-introspection')
13
makedepends=('python-pip')
14
source=("$pkgname-$pkgver.tar.gz::https://github.com/StreamController/StreamController/archive/refs/tags/$_pkgver.tar.gz")
15
sha256sums=('a32c4bb58468ffff48f217f0e3fa82b27871c8d2e758f1139e8b7856293f7e74')
16
provides=('streamcontroller')
17
conflicts=('streamcontroller-git')
18
19
prepare() {
20
sed s'|==|>=|g' -i ${_reponame}/requirements.txt
21
}
22
23
package() {
24
# Create virtualenv with dependencies
25
mkdir -p "$pkgdir/usr/lib/$_pkgname/venv"
26
python -m venv "$pkgdir/usr/lib/$_pkgname/venv"
27
source "$pkgdir/usr/lib/$_pkgname/venv/bin/activate"
28
cd "$srcdir/$_reponame"
29
pip install -r requirements.txt
30
deactivate
31
32
# Ensure correct venv is used after install
33
cd "$pkgdir/usr/lib/$_pkgname/venv/bin"
34
sed -i "s|$pkgdir||g" *
35
cd "$srcdir/$_reponame"
36
37
# Install source files
38
mkdir -p "$pkgdir/usr/lib/$_pkgname"
39
cp -r "$srcdir/$_reponame"/* "$pkgdir/usr/lib/$_pkgname/"
40
41
# Install launch script to /usr/bin
42
mkdir -p "$pkgdir/usr/bin"
43
cat <<EOF > "$pkgdir/usr/bin/$_pkgname"
44
#!/bin/bash
45
cd /usr/lib/$_pkgname
46
source /usr/lib/$_pkgname/venv/bin/activate
47
exec python main.py "\$@"
48
EOF
49
chmod +x "$pkgdir/usr/bin/$_pkgname"
50
51
# Install application entry (use upstream desktop file with corrected Exec and StartupWMClass)
52
sed -e 's|Exec=.*|Exec=streamcontroller|' \
53
-e 's|^Categories=Utility$|Categories=Utility;|' \
54
"$srcdir/$_reponame/flatpak/launch.desktop" > "$srcdir/sc.desktop"
55
# Upstream's launch.desktop has no trailing newline; the leading \n keeps
56
# StartupWMClass from being appended onto the Categories line
57
printf '\nStartupWMClass=com.core447.StreamController\n' >> "$srcdir/sc.desktop"
58
install -Dm644 "$srcdir/sc.desktop" "$pkgdir/usr/share/applications/com.core447.StreamController.desktop"
59
60
# Install icon under reverse-domain name matching the app's GApplication ID
61
install -Dm644 "$srcdir/$_reponame/flatpak/icon_256.png" "$pkgdir/usr/share/icons/hicolor/256x256/apps/com.core447.StreamController.png"
62
}
63
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-03 00:08:14 | LOW | 2 |
| 2026-08-02 00:16:08 | LOW | 2 |
| 2026-08-01 00:11:18 | LOW | 2 |
| 2026-07-31 00:14:10 | LOW | 2 |
| 2026-07-30 00:17:23 | LOW | 2 |
| 2026-07-29 00:25:53 | LOW | 2 |
| 2026-07-28 00:07:28 | LOW | 2 |
| 2026-07-27 00:24:32 | LOW | 2 |
| 2026-07-26 00:07:32 | LOW | 2 |
| 2026-07-25 00:13:44 | LOW | 2 |
| 2026-07-24 00:02:28 | LOW | 2 |
| 2026-07-23 00:14:47 | LOW | 2 |
| 2026-07-22 00:29:32 | LOW | 2 |
| 2026-07-21 00:24:15 | LOW | 2 |
| 2026-07-20 00:19:49 | LOW | 2 |
| 2026-07-19 00:17:08 | LOW | 2 |
| 2026-07-18 00:14:48 | LOW | 2 |
| 2026-07-17 00:06:16 | LOW | 2 |
| 2026-07-16 00:05:41 | LOW | 2 |
| 2026-07-15 17:49:21 | MEDIUM | 1 |