polify-bin
maintainer drzoidberg
· 1 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The package downloads a prebuilt binary tarball from a non-whitelisted host, but it is a legitimate release artifact for the project, signed with a PGP key, and the worst case of a swapped source would be code execution; however, the use of a verifiable signature and project-specific infrastructure lowers the risk compared to unverified binaries from arbitrary hosts.
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-07-25) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The package downloads a prebuilt binary tarball from a non-whitelisted host, but it is a legitimate release artifact for the project, signed with a PGP key, and the worst case of a swapped source would be code execution; however, the use of a verifiable signature and project-specific infrastructure lowers the risk compared to unverified binaries from arbitrary hosts.
1 higher static finding superseded - not the current verdict (shown for transparency)
MEDIUM
source=() URL on a non-standard host
source_untrusted_domain
One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).
-
PKGBUILD:22
source=("polify-${pkgver}-linux-x86_64.tar.zst::https://buildhut.fly.dev/api/apps/Polify/latest/linux/x86_64/tar.zst"
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: drzoidberg <drzoidberg+aur@cloudblock.dev>
2
#
3
# Binary release PKGBUILD for polify-bin on AUR.
4
# Source URLs use buildhut stable redirect endpoints.
5
# The CI publish-aur-bin task updates pkgver, sha256sums, and b2sums
6
# after each successful build before pushing to AUR.
7
8
pkgname=polify-bin
9
pkgver=0.2.7
10
pkgrel=1
11
pkgdesc="Cross-platform music manager with multi-source library, audio fingerprinting, and ID3 tag editing"
12
arch=('x86_64')
13
url="https://buildhut.fly.dev/apps/Polify"
14
license=('MIT')
15
depends=('gtk3' 'libepoxy' 'xz' 'mpv' 'ffmpeg' 'sqlite' 'libsecret'
16
'gstreamer' 'gst-plugins-base' 'gst-plugins-good' 'gst-libav'
17
'libayatana-appindicator' 'flac' 'opus' 'libogg' 'libvorbis')
18
makedepends=('patchelf')
19
provides=('polify')
20
conflicts=('polify' 'polify-git')
21
validpgpkeys=('EF27591A48D4B6F7C7E55F49EC8E0E98E7C13D19')
22
source=("polify-${pkgver}-linux-x86_64.tar.zst::https://buildhut.fly.dev/api/apps/Polify/latest/linux/x86_64/tar.zst"
23
"polify-${pkgver}-linux-x86_64.tar.zst.sig::https://buildhut.fly.dev/api/apps/Polify/latest/linux/x86_64/tar.zst/signature")
24
sha256sums=('SKIP'
25
'SKIP')
26
b2sums=('SKIP'
27
'SKIP')
28
29
# Expected tarball layout (from make release):
30
# bundle/ — Flutter Linux release bundle contents (includes onnxruntime libs)
31
# polify.desktop — XDG desktop entry
32
# polify.png — Application icon
33
34
package() {
35
cd "$srcdir"
36
37
# Application bundle
38
install -d "$pkgdir/usr/lib/polify"
39
cp -a bundle/* "$pkgdir/usr/lib/polify/"
40
chmod -R 755 "$pkgdir/usr/lib/polify"
41
42
# Replace link-time canonical appindicator with ayatana.
43
# The CI may link against libappindicator3 but the runtime code
44
# dlopens libayatana-appindicator3 first — mixing both causes segfaults.
45
patchelf --replace-needed libappindicator3.so.1 libayatana-appindicator3.so.1 \
46
"$pkgdir/usr/lib/polify/lib/libsystem_tray_plugin.so" 2>/dev/null || true
47
48
# Replace Debian-style vorbis sonames with Arch sonames
49
patchelf --replace-needed libvorbis.so.0.4.9 libvorbis.so.0 \
50
"$pkgdir/usr/lib/polify/lib/libflutter_soloud_plugin.so" 2>/dev/null || true
51
patchelf --replace-needed libvorbisfile.so.3.3.8 libvorbisfile.so.3 \
52
"$pkgdir/usr/lib/polify/lib/libflutter_soloud_plugin.so" 2>/dev/null || true
53
54
# Fix RUNPATH: remove build directory references so the linker finds
55
# co-located libraries in $ORIGIN (the lib/ directory)
56
# - Main binary: needs $ORIGIN/lib to find plugins
57
# - Plugin .so files: need $ORIGIN to find co-located libraries
58
patchelf --set-rpath '$ORIGIN/lib' "$pkgdir/usr/lib/polify/polify" 2>/dev/null || true
59
find "$pkgdir/usr/lib/polify/lib" -type f \( -name '*.so' -o -name '*.so.*' \) \
60
-exec patchelf --set-rpath '$ORIGIN' {} + 2>/dev/null || true
61
62
# Strip debug symbols and unneeded metadata
63
find "$pkgdir/usr/lib/polify" -type f \( -name '*.so' -o -name '*.so.*' \
64
-o -not -name '*.*' \) -exec strip --strip-unneeded {} + 2>/dev/null || true
65
66
# Symlink to /usr/bin
67
install -d "$pkgdir/usr/bin"
68
ln -s /usr/lib/polify/polify "$pkgdir/usr/bin/polify"
69
70
# Desktop entry and icon
71
install -Dm644 polify.desktop "$pkgdir/usr/share/applications/polify.desktop"
72
install -Dm644 polify.png "$pkgdir/usr/share/pixmaps/polify.png"
73
}
74
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 00:09:25 | LOW | 2 |