libft4222
maintainer AscendLiu
· 1 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The package downloads a source archive from the official project's domain (ftdichip.com), which is the legitimate vendor's site, and builds a library from it; the non-whitelisted host is the project's own content delivery URL, and the downloaded files are build artifacts, not executed payloads, making the risk low despite SKIP'd checksums.
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 archive from the official project's domain (ftdichip.com), which is the legitimate vendor's site, and builds a library from it; the non-whitelisted host is the project's own content delivery URL, and the downloaded files are build artifacts, not executed payloads, making the risk low despite SKIP'd checksums.
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:11
source=("https://ftdichip.com/wp-content/uploads/2025/04/libft4222-linux-1.4.4.232.zip"
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: Ascend Liu<ascendliu@qq.com>
2
3
pkgname=libft4222
4
pkgver=1.4.4.232
5
pkgrel=1
6
pkgdesc="Library for FT4222HQ – USB 2.0 to Quad SPI / I2C Bridge IC"
7
arch=('x86_64')
8
url="https://ftdichip.com/products/ft4222h/"
9
license=('custom')
10
depends=('libftd2xx')
11
source=("https://ftdichip.com/wp-content/uploads/2025/04/libft4222-linux-1.4.4.232.zip"
12
"ft4222-config.cmake.in"
13
"ft4222.rules")
14
sha256sums=('SKIP'
15
'SKIP'
16
'SKIP')
17
options=(staticlibs)
18
makedepends=()
19
20
prepare() {
21
bsdtar -xf "${pkgname}-linux-${pkgver}.zip"
22
23
mkdir "${pkgname}-linux-${pkgver}"
24
25
tar -xzf "${pkgname}-linux-${pkgver}.tgz" -C "${pkgname}-linux-${pkgver}"
26
27
sed -e "s|@PROJECT_VERSION@|${pkgver}|g" \
28
-e "s|@PACKAGE_LIBRARY_FILE@|/usr/lib/libft4222.so|g" \
29
-e "s|@PACKAGE_LIBRARY_STATIC_FILE@|/usr/lib/libft4222.a|g" \
30
-e "s|@PACKAGE_INCLUDE_DIR@|/usr/include|g" \
31
ft4222-config.cmake.in > ft4222-config.cmake
32
}
33
34
package() {
35
36
mkdir -p ${pkgdir}/usr/{lib,include,lib/cmake/ft4222}
37
38
# install shared library
39
install -Dm755 ${srcdir}/${pkgname}-linux-${pkgver}/build-x86_64/${pkgname}.so.${pkgver} ${pkgdir}/usr/lib/${pkgname}.so.${pkgver}
40
install -Dm644 ${srcdir}/${pkgname}-linux-${pkgver}/build-x86_64/${pkgname}.a ${pkgdir}/usr/lib/${pkgname}.a
41
42
43
ln -sf "/usr/lib/${pkgname}.so.${pkgver}" "${pkgdir}/usr/lib/${pkgname}.so"
44
45
# install headers
46
install -Dm644 ${srcdir}/${pkgname}-linux-${pkgver}/libft4222.h "${pkgdir}/usr/include/libft4222.h"
47
48
# Install udev rules
49
install -D -m644 "${srcdir}"/ft4222.rules "${pkgdir}"/etc/udev/rules.d/ft4222.rules
50
51
# 安装CMake配置文件
52
install -Dm644 "${srcdir}"/ft4222-config.cmake "${pkgdir}/usr/lib/cmake/ft4222/ft4222-config.cmake"
53
54
}
55
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 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 |