hybridfilexfer-git

LOW
maintainer nlsdt 0 votes scanned 2026-11-01 00:21:48.120785
View on AUR
Why flagged

The package builds from a legitimate GitHub source and includes a Maven JAR with a valid checksum; the non-whitelisted host is GitHub, which is plausibly the project's official repository, and no untrusted executable code is downloaded or executed.

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 builds from a legitimate GitHub source and includes a Maven JAR with a valid checksum; the non-whitelisted host is GitHub, which is plausibly the project's official repository, and no untrusted executable code is downloaded or executed.

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:35 'annotations.jar::https://repo1.maven.org/maven2/org/jetbrains/annotations/24.0.1/annotations-24.0.1.jar'

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: Nlsdt <xsfx0313@proton.me>
2# Maintainer: Li Hua <lihua@email.com>
3
4# 包元数据
5_pkgname=HybridFileXfer
6# https://github.com/weixiansen574/HybridFileXfer
7pkgname=hybridfilexfer-git
8pkgver=r65.7de4351
9pkgrel=2
10pkgdesc='Multi-track Express Transfer: Simultaneously utilize all I/O channels (USB+WiFi) for maximum file transfer speed || 多轨快传:同时利用所有输入/输出通道 (USB+WiFi),实现最大文件传输速度'
11# 多轨快传:同时利用所有输入/输出通道(USB+WiFi),实现最大文件传输速度
12arch=('x86_64')
13url='https://github.com/weixiansen574/HybridFileXfer'
14license=('GPL-3.0-only')
15
16# 依赖
17depends=(
18 'java-runtime>=8'
19 'android-tools'
20 'android-udev'
21 'bash'
22)
23# 依赖 java1.8, adb 属于 android-tools
24makedepends=(
25 'jdk8-openjdk'
26 'git'
27)
28# 编译依赖 **必须** 依赖 java 8 (为什么这么老?
29provides=('hybridfilexfer')
30conflicts=('hybridfilexfer')
31
32# 资源获取
33source=(
34 "$_pkgname::git+https://github.com/weixiansen574/HybridFileXfer.git"
35 'annotations.jar::https://repo1.maven.org/maven2/org/jetbrains/annotations/24.0.1/annotations-24.0.1.jar'
36)
37sha256sums=(
38 'SKIP'
39 '61666dbce7e42e6c85b43c04fcfb8293a21dcb55b3c80e869270ce42c01a6b35'
40)
41
42pkgver() {
43 cd "$_pkgname"
44 ( set -o pipefail
45 git describe --long --abbrev=7 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
46 printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
47 )
48}
49
50# 准备
51prepare() {
52 mv annotations.jar "./$_pkgname/$_pkgname-PC/annotations.jar"
53}
54
55# 构建
56build() {
57 cd $_pkgname/$_pkgname-PC
58 find src -name "*.java" > sources.txt
59 echo '编译 classes | compile classes'
60 mkdir -p build/classes
61 /usr/lib/jvm/java-8-openjdk/bin/javac -cp annotations.jar -d build/classes @sources.txt
62 echo '编译 classes 完成| compile classes done'
63 echo '复制语言文件 | copy i18n files'
64 cp ./src/messages_*.properties ./build/classes/
65 echo '复制语言文件 完成| copy i18n files done'
66 echo 'jar 打包 | packing jar'
67 jar cvfm "$_pkgname.jar" ./src/META-INF/MANIFEST.MF -C build/classes .
68 echo 'jar 打包 完成| packing jar done'
69}
70
71#安装
72package() {
73
74 install -dm755 "$pkgdir/usr/share/java/$_pkgname/"
75 # 安装 jar 文件
76 install -Dm644 "$_pkgname/$_pkgname-PC/$_pkgname.jar" "$pkgdir/usr/share/java/$_pkgname/$_pkgname.jar"
77 install -dm755 "$pkgdir/usr/bin/"
78 cat > "${_pkgname,,}" << EOF
79#!/bin/bash
80exec java -jar /usr/share/java/$_pkgname/$_pkgname.jar "\$@"
81EOF
82 install -Dm755 "${_pkgname,,}" "$pkgdir/usr/bin/$_pkgname"
83}
84

Scan history

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

Report a package

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

0 / 4000
Your suggestion