sputnik-bin

LOW
maintainer zxp19821005 0 votes scanned 2026-10-08 00:28:03.132797
View on AUR
Why flagged

The package installs a prebuilt .deb from the project's official GitHub releases, which is normal for binary packages; the source is trustworthy and no malicious behavior is present, though the low vote count and recent upload are minor risk indicators.

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.

Low AI review llm_review

An AI model (qwen/qwen3-235b-a22b-2507) reviewed this and agrees it is LOW (confidence 95%): The package installs a prebuilt .deb from the project's official GitHub releases, which is normal for binary packages; the source is trustworthy and no malicious behavior is present, though the low vote count and recent upload are minor risk indicators.

PKGBUILD

1# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
2pkgname=sputnik-bin
3_pkgname=Sputnik
4pkgver=2.0.0
5_electronversion=44
6pkgrel=1
7pkgdesc="A minimalist desktop music player."
8arch=('x86_64')
9url="https://github.com/bonavida/sputnik"
10license=('MIT')
11provides=("${pkgname%-bin}=${pkgver}")
12conflicts=("${pkgname%-bin}")
13depends=(
14 "electron${_electronversion}"
15)
16source=(
17 "${pkgname%-bin}-${pkgver}.deb::${url}/releases/download/v${pkgver}/${_pkgname}-${pkgver}-amd64.deb"
18 "LICENSE-${pkgver}::https://raw.githubusercontent.com/bonavida/sputnik/v${pkgver}/LICENSE"
19 "${pkgname%-bin}.sh"
20)
21sha256sums=('c08d8953031cf854e0dc16965239f1afb21a9089e6b721b5d069a89dfdd6be86'
22 'f229649a1d88073fe35799b89b56c229a5f4203837e5f0eb14817f0e04a80b7c'
23 'fe033c7446c688abcb9a007d75f40eb9ca62756880cfde6be54fdf27a5bd94a8')
24_get_app_dir() {
25 find "${srcdir}" -type f -name "resources.pak" -print 2>/dev/null | while read f; do [ -d "${f%/*}/resources" ] && echo "${f%/*}" && break; done
26}
27_check_electron_version() {
28 echo "Verifying Electron version..."
29 local _main_exe=$(find "$(_get_app_dir)" -maxdepth 1 -type f -executable -printf '%s %p\n' | sort -nr | head -1 | cut -d' ' -f2-)
30 [[ -z "${_main_exe}" ]] && echo -e "\033[1;33mNote: Could not find Electron binary.\033[0m" && return
31 local _elec_ver=$(strings "${_main_exe}" | grep -oP 'Electron/\K[0-9]+' | head -1)
32 [[ -z "${_elec_ver}" ]] && echo -e "\033[1;33mNote: Could not determine Electron version.\033[0m" && return
33 [[ "${_elec_ver}" != "${_electronversion}" ]] &&
34 echo -e "\033[1;31mWarning: Electron version mismatch! Detected: ${_elec_ver}, Expected: ${_electronversion}\033[0m" ||
35 echo -e "Electron version verified: \033[1;31m${_elec_ver}\033[0m"
36}
37prepare() {
38 sed -i -e "
39 s/@electronversion@/${_electronversion}/g
40 s/@appname@/${pkgname%-bin}/g
41 s/@runname@/app.asar/g
42 " "${srcdir}/${pkgname%-bin}.sh"
43 bsdtar -xf "${srcdir}/data."*
44 _check_electron_version
45 sed -i -e "
46 s/\/opt\/${_pkgname}\///g
47 s/Categories=Audio;/Categories=AudioVideo;/g
48 " "${srcdir}/usr/share/applications/${pkgname%-bin}.desktop"
49}
50package() {
51 install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}"
52 install -Dm755 -d "${pkgdir}/usr/lib/${pkgname%-bin}"
53 local _app_dir="$(_get_app_dir)"
54 cp -a "${_app_dir}/resources/." "${pkgdir}/usr/lib/${pkgname%-bin}/"
55 install -Dm644 "${srcdir}/usr/share/applications/${pkgname%-bin}.desktop" -t "${pkgdir}/usr/share/applications"
56 find "${srcdir}" -type f \( -name "*.png" -o -name "*.svg" \) -path "*share/icons/*" | while read -r _i; do
57 _extension="${_i##*.}"
58 _icon_path="${_i#*share/icons/}"
59 _target_dir="/usr/share/icons/$(dirname "${_icon_path}")"
60 install -Dm644 "${_i}" "${pkgdir}${_target_dir}/${pkgname%-bin}.${_extension}"
61 done
62 install -Dm644 "${srcdir}/LICENSE-${pkgver}" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
63}

Scan history

Scanned at (UTC)SeverityRules
2026-10-08 00:28:03 Low 2
2026-10-08 00:07:12 Low 2

Report a package

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

0 / 4000
Your suggestion