photosir-himirage-bin

maintainer zxp19821005 · 1 votes · scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged 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

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 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)
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: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
1# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
2_appname=himirage
3pkgname="photosir-${_appname}-bin"
4_pkgname="cn.photosir.${_appname}"
5_armver=5.0.6.51215
6_x86ver=2.0.4.51110
7case "${CARCH}" in
8 aarch64)
9 pkgver="${_armver}"
10 ;;
11 x86_64)
12 pkgver="${_x86ver}"
13 ;;
14esac
15pkgrel=2
16pkgdesc="A multifunctional image processing software.(Prebuilt version).悟空图像是一款多功能图像处理软件."
17arch=(
18 'aarch64'
19 'x86_64'
20)
21license=('GPL-2.0-or-later')
22url="https://photosir.com"
23conflicts=(
24 "${pkgname%-bin}"
25 "${_pkgname}"
26)
27provides=("${pkgname%-bin}")
28depends=(
29 'gtk3'
30 'nspr'
31 'nss'
32 'postgresql-libs'
33 'qt5-base'
34 'qt5-declarative'
35 'qt5-location'
36 'qt5-multimedia'
37 'qt5-quickcontrols2'
38 'qt5-remoteobjects'
39 'qt5-sensors'
40 'qt5-speech'
41 'qt5-svg'
42 'qt5-tools'
43 'qt5-wayland'
44 'qt5-webchannel'
45 'qt5-webengine'
46 'qt5-websockets'
47 'qt5-xmlpatterns'
48 'qt6-declarative'
49 'qt6-multimedia'
50 'unixodbc'
51 'xcb-util'
52 'xcb-util-image'
53 'xcb-util-keysyms'
54 'xcb-util-renderutil'
55 'xcb-util-wm'
56 'qt6-webengine'
57 'libspeechd'
58 'qt5-x11extras'
59)
60options=('!strip')
61source=("${pkgname%-bin}.sh")
62source_aarch64=("${pkgname%-bin}-${_armver}-aarch64.deb::https://cdn.photosir.cn/package/uos/51215/${_pkgname}_${_armver}-arm64.deb")
63source_x86_64=("${pkgname%-bin}-${_x86ver}-x86_64.deb::https://cdn.photosir.cn/package/uos/51110/${_pkgname}_${_x86ver}-amd64.deb")
64sha256sums=('7d749594f8e9bea1f10fd4be5e95a09ebdbb23bc19754ab22d3bb626d5deae64')
65sha256sums_aarch64=('8dab56c8692ce94e806f6d33bc940842c9ce21d95067e852d17fbe0477e99250')
66sha256sums_x86_64=('d6a71c552c626c46c3deaf312ab7837faa4a50ee0918a4c394979d7b53b24c87')
67prepare() {
68 sed -i -e "
69 s/@appname@/${pkgname%-bin}/g
70 s/@runname@/${_appname}/g
71 " "${srcdir}/${pkgname%-bin}.sh"
72 bsdtar -xf "${srcdir}/data."*
73 sed -i -e "
74 s/\/opt\/apps\/${_pkgname}\/files\/himirage.sh/${pkgname%-bin}/g
75 s/Icon=${_pkgname}/Icon=${pkgname%-bin}/g
76 s/Name=${_pkgname}/Name=${pkgname%-bin}/g
77 " "${srcdir}/opt/apps/${_pkgname}/entries/applications/${_pkgname}.desktop"
78}
79package(){
80 install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}"
81 install -Dm755 -d "${pkgdir}/usr/lib/${pkgname%-bin}"
82 cp -Pr --no-preserve=ownership "${srcdir}/opt/apps/${_pkgname}/files/"* "${pkgdir}/usr/lib/${pkgname%-bin}"
83 install -Dm644 "${srcdir}/opt/apps/${_pkgname}/entries/applications/${_pkgname}.desktop" \
84 "${pkgdir}/usr/share/applications/${pkgname%-bin}.desktop"
85 _icon_sizes=(16x16 24x24 32x32 48x48 128x128 256x256 512x512)
86 for _icons in "${_icon_sizes[@]}";do
87 install -Dm644 "${srcdir}/opt/apps/${_pkgname}/entries/icons/hicolor/${_icons}/apps/${_pkgname}.png" \
88 "${pkgdir}/usr/share/icons/hicolor/${_icons}/apps/${pkgname%-bin}.png"
89 done
90 install -Dm644 "${srcdir}/opt/apps/${_pkgname}/entries/mime/packages/${_appname}-file.xml" "${pkgdir}/usr/share/mime/packages/${pkgname%-bin}.xml"
91 install -Dm644 "${srcdir}/opt/apps/${_pkgname}/files/doc/${_pkgname}/copyright" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
92}
93

Scan history

Scanned at (UTC)SeverityRules
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

Report a package

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

0 / 4000
Your suggestion