photosir-himirage-bin
The package downloads prebuilt .deb files from the project's own CDN (cdn.photosir.cn) for packaging, which is a non-whitelisted but plausibly official source; however, the binaries are verified with matching sha256sums, reducing supply-chain risk, and the build process only extracts and installs them in standard locations without executing arbitrary remote code.
Triggered rules
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 prebuilt .deb files from the project's own CDN (cdn.photosir.cn) for packaging, which is a non-whitelisted but plausibly official source; however, the binaries are verified with matching sha256sums, reducing supply-chain risk, and the build process only extracts and installs them in standard locations without executing arbitrary remote code.
1 higher static finding superseded - not the current verdict (shown for transparency)
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:62
source_aarch64=("${pkgname%-bin}-${_armver}-aarch64.deb::https://cdn.photosir.cn/package/uos/51215/${_pkgname}_${_armver}-arm64.deb")
PKGBUILD
1 offending line(s) highlighted# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
_appname=himirage
pkgname="photosir-${_appname}-bin"
_pkgname="cn.photosir.${_appname}"
_armver=5.0.6.51215
_x86ver=2.0.4.51110
case "${CARCH}" in
aarch64)
pkgver="${_armver}"
;;
x86_64)
pkgver="${_x86ver}"
;;
esac
pkgrel=2
pkgdesc="A multifunctional image processing software.(Prebuilt version).悟空图像是一款多功能图像处理软件."
arch=(
'aarch64'
'x86_64'
)
license=('GPL-2.0-or-later')
url="https://photosir.com"
conflicts=(
"${pkgname%-bin}"
"${_pkgname}"
)
provides=("${pkgname%-bin}")
depends=(
'gtk3'
'nspr'
'nss'
'postgresql-libs'
'qt5-base'
'qt5-declarative'
'qt5-location'
'qt5-multimedia'
'qt5-quickcontrols2'
'qt5-remoteobjects'
'qt5-sensors'
'qt5-speech'
'qt5-svg'
'qt5-tools'
'qt5-wayland'
'qt5-webchannel'
'qt5-webengine'
'qt5-websockets'
'qt5-xmlpatterns'
'qt6-declarative'
'qt6-multimedia'
'unixodbc'
'xcb-util'
'xcb-util-image'
'xcb-util-keysyms'
'xcb-util-renderutil'
'xcb-util-wm'
'qt6-webengine'
'libspeechd'
'qt5-x11extras'
)
options=('!strip')
source=("${pkgname%-bin}.sh")
source_aarch64=("${pkgname%-bin}-${_armver}-aarch64.deb::https://cdn.photosir.cn/package/uos/51215/${_pkgname}_${_armver}-arm64.deb")
source_x86_64=("${pkgname%-bin}-${_x86ver}-x86_64.deb::https://cdn.photosir.cn/package/uos/51110/${_pkgname}_${_x86ver}-amd64.deb")
sha256sums=('7d749594f8e9bea1f10fd4be5e95a09ebdbb23bc19754ab22d3bb626d5deae64')
sha256sums_aarch64=('8dab56c8692ce94e806f6d33bc940842c9ce21d95067e852d17fbe0477e99250')
sha256sums_x86_64=('d6a71c552c626c46c3deaf312ab7837faa4a50ee0918a4c394979d7b53b24c87')
prepare() {
sed -i -e "
s/@appname@/${pkgname%-bin}/g
s/@runname@/${_appname}/g
" "${srcdir}/${pkgname%-bin}.sh"
bsdtar -xf "${srcdir}/data."*
sed -i -e "
s/\/opt\/apps\/${_pkgname}\/files\/himirage.sh/${pkgname%-bin}/g
s/Icon=${_pkgname}/Icon=${pkgname%-bin}/g
s/Name=${_pkgname}/Name=${pkgname%-bin}/g
" "${srcdir}/opt/apps/${_pkgname}/entries/applications/${_pkgname}.desktop"
}
package(){
install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}"
install -Dm755 -d "${pkgdir}/usr/lib/${pkgname%-bin}"
cp -Pr --no-preserve=ownership "${srcdir}/opt/apps/${_pkgname}/files/"* "${pkgdir}/usr/lib/${pkgname%-bin}"
install -Dm644 "${srcdir}/opt/apps/${_pkgname}/entries/applications/${_pkgname}.desktop" \
"${pkgdir}/usr/share/applications/${pkgname%-bin}.desktop"
_icon_sizes=(16x16 24x24 32x32 48x48 128x128 256x256 512x512)
for _icons in "${_icon_sizes[@]}";do
install -Dm644 "${srcdir}/opt/apps/${_pkgname}/entries/icons/hicolor/${_icons}/apps/${_pkgname}.png" \
"${pkgdir}/usr/share/icons/hicolor/${_icons}/apps/${pkgname%-bin}.png"
done
install -Dm644 "${srcdir}/opt/apps/${_pkgname}/entries/mime/packages/${_appname}-file.xml" "${pkgdir}/usr/share/mime/packages/${pkgname%-bin}.xml"
install -Dm644 "${srcdir}/opt/apps/${_pkgname}/files/doc/${_pkgname}/copyright" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-11-01 00:21:48 | Low | 2 |
| 2026-10-31 00:07:41 | Low | 2 |
| 2026-10-30 00:29:30 | Low | 2 |
| 2026-10-29 00:13:55 | Low | 2 |
| 2026-10-28 00:06:54 | Low | 2 |
| 2026-10-27 00:23:28 | Low | 2 |
| 2026-10-26 00:12:40 | Low | 2 |
| 2026-10-25 00:20:48 | Low | 2 |
| 2026-10-24 00:14:55 | Low | 2 |
| 2026-10-23 00:02:19 | Low | 2 |
| 2026-10-22 00:13:10 | Low | 2 |
| 2026-10-21 00:12:50 | Low | 2 |
| 2026-10-20 00:10:31 | Low | 2 |
| 2026-10-19 00:03:55 | Low | 2 |
| 2026-10-18 00:06:55 | Low | 2 |
| 2026-10-17 00:21:55 | Low | 2 |
| 2026-10-16 00:12:47 | Low | 2 |
| 2026-10-15 00:28:05 | Low | 2 |
| 2026-10-14 00:06:47 | Low | 2 |
| 2026-10-13 00:23:45 | Low | 2 |