mounriver-studio-community

LOW
maintainer chenss 2 votes scanned 2026-09-17 00:27:14.276658
View on AUR
Why flagged

The package downloads a source tarball from a non-whitelisted but plausibly project-owned host (file-oss.mounriver.com) for building an official IDE; the content is data and binaries intended for local execution, not remote code injection, and the checksums are verified.

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 source tarball from a non-whitelisted but plausibly project-owned host (file-oss.mounriver.com) for building an official IDE; the content is data and binaries intended for local execution, not remote code injection, and the checksums are verified.

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:21 source=("${pkgname}-${pkgver}.tar.xz::http://file-oss.mounriver.com//upgrade/MounRiver_Studio_Community_Linux_x64_V${pkgver//./}.tar.xz"

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: Chance Chen <ufbycd@163.com>
2
3pkgname=mounriver-studio-community
4pkgver=1.90
5pkgrel=1
6arch=('x86_64')
7pkgdesc="为 Eclipse 平台爱好者提供的一款 RISC-V 内核芯片集成开发环境,支持 WCH 系列 MCU 的工程模板、代码编译、下载、调试等功能。 "
8url="http://www.mounriver.com"
9license=('GPL2' 'GPL3' 'custom')
10provides=()
11conflicts=()
12depends=('libftdi-compat' 'libusb' 'hidapi' 'libusb-compat' 'udev')
13makedepends=()
14optdepends=('ch34x-dkms-git: CH341SER driver with fixed bug'
15 'i2c-ch341-dkms: CH341 USB-I2C adapter driver'
16 'spi-ch341-usb-dkms: SPI/GPIO driver for CH341'
17 'ch341eepromtool: An i2c serial EEPROM programming tool for the WCH CH341A'
18 'ch341prog-git: A simple command line tool (programmer) interfacing with ch341a'
19 'ch341eeprom-git: A libusb based programming tool for 24xx I²C EEPROMs using the WCH CH341A')
20options=('!strip')
21source=("${pkgname}-${pkgver}.tar.xz::http://file-oss.mounriver.com//upgrade/MounRiver_Studio_Community_Linux_x64_V${pkgver//./}.tar.xz"
22 "udev-rules.patch")
23sha256sums=('11e686fe7d00a861ee8ce9f51e01ba432e73d38e3498bc9d6a27b16af7c70b57'
24 '7ed97c1a494ddbd5b6d594223bc35aa31949c416c0b23a3adabfda239b9f3c73')
25
26prepare() {
27 cd "$srcdir/MounRiver_Studio_Community_Linux_x64_V${pkgver//./}"
28 patch --forward --strip=1 --input="${srcdir}/udev-rules.patch"
29 find MRS_Community -perm 600 -exec chmod 644 {} \;
30}
31
32package() {
33 cd "$srcdir/MounRiver_Studio_Community_Linux_x64_V${pkgver//./}"
34 install -dm0755 "$pkgdir/usr/share/$pkgname"
35 cp -afr MRS_Community/* "$pkgdir/usr/share/$pkgname"
36
37 install -Dm0644 "beforeinstall/50-wch.rules" "${pkgdir}/usr/lib/udev/rules.d/50-wch-community.rules"
38 install -Dm0644 "beforeinstall/60-openocd.rules" "${pkgdir}/usr/lib/udev/rules.d/60-openocd-wch-community.rules"
39
40 install -Dm0755 /dev/stdin "${pkgdir}/usr/bin/openocd-wch-community-arm" << EOF
41#!/bin/env bash
42exec /usr/share/$pkgname/toolchain/OpenOCD/bin/openocd -f /usr/share/$pkgname/toolchain/OpenOCD/bin/wch-arm.cfg "\$@"
43EOF
44
45 install -Dm0755 /dev/stdin "${pkgdir}/usr/bin/openocd-wch-community-riscv" << EOF
46#!/bin/env bash
47exec /usr/share/$pkgname/toolchain/OpenOCD/bin/openocd -f /usr/share/$pkgname/toolchain/OpenOCD/bin//wch-riscv.cfg "\$@"
48EOF
49
50 install -Dm0644 /dev/stdin "${pkgdir}/etc/profile.d/${pkgname}.sh" << EOF
51[ -d /usr/share/$pkgname/toolchain/arm-none-eabi-gcc/bin/ ] && append_path '/usr/share/$pkgname/toolchain/arm-none-eabi-gcc/bin/'
52[ -d /usr/share/$pkgname/toolchain/RISC-V\ Embedded\ GCC/bin/ ] && append_path '/usr/share/$pkgname/toolchain/RISC-V\ Embedded GCC/bin/'
53EOF
54
55 install -Dm755 /dev/stdin "${pkgdir}/usr/bin/${pkgname}" <<EOF
56#!/bin/sh
57GDK_BACKEND=x11 /usr/share/$pkgname/MounRiver\ Studio_Community "\$@"
58EOF
59
60 install -Dm644 /dev/stdin "$pkgdir/usr/share/applications/${pkgname}.desktop" <<EOF
61[Desktop Entry]
62Name=MounRiver Studio Community
63GenericName=MounRiver Studio Community
64Comment=Eclipse Based Embedded C/C++ IDE for WCH Microcontroller
65Exec=/usr/bin/$pkgname
66Icon=/usr/share/$pkgname/icon.xpm
67Path=/usr/share/$pkgname/
68Terminal=false
69StartupNotify=true
70Type=Application
71Categories=Development;RISC-V;ARM;
72EOF
73}
74
75# vim: ts=4 sw=4 et
76

Scan history

Scanned at (UTC)SeverityRules
2026-09-17 00:27:14 Low 2
2026-09-16 00:03:17 Low 2
2026-09-15 00:25:31 Low 2
2026-09-14 00:27:57 Low 2
2026-09-13 00:19:54 Low 2
2026-09-12 00:25:17 Low 2
2026-09-11 00:19:22 Low 2
2026-09-10 00:22:44 Low 2
2026-09-09 00:04:09 Low 2
2026-09-08 00:18:08 Low 2
2026-09-07 00:30:15 Low 2
2026-09-06 00:17:06 Low 2
2026-09-05 00:16:27 Low 2
2026-09-04 00:03:13 Low 2
2026-09-03 00:15:47 Low 2
2026-09-02 00:02:31 Low 2
2026-09-01 00:11:19 Low 2
2026-08-31 00:19:57 Low 2
2026-08-30 00:04:14 Low 2
2026-08-29 00:29:17 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