hybridfilexfer-git

maintainer nlsdt · 0 votes · scanned 2026-08-03 00:08:14.047287
LOW
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-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