pilinara
maintainer nlsdt
· 0 votes
· scanned 2026-08-18 00:03:42.021799
LOW
View on AUR ↗
Why flagged
Package builds from source hosted on GitHub, applies patches to Flutter SDK, and uses fvm for Flutter version management; no remote code execution or malicious payloads detected, but few votes and recent upload warrant caution.
Triggered rules
LOW
Few votes, recently uploaded
zero_votes_recent
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
LOW
AI review
llm_review
An AI model (qwen/qwen3-235b-a22b-2507) reviewed this and agrees it is LOW (confidence 90%): Package builds from source hosted on GitHub, applies patches to Flutter SDK, and uses fvm for Flutter version management; no remote code execution or malicious payloads detected, but few votes and recent upload warrant caution.
PKGBUILD
1
# Maintainer: nlsdt <nlsdt@nlsdt.cc>
2
3
pkgname=pilinara
4
_pkgname=pilinara
5
_srcname=PiliNara
6
_pkgtag=2.1.0.2
7
pkgver=2.1.0.2
8
pkgrel=3
9
url="https://github.com/Starfallan/PiliNara"
10
pkgdesc="PiliPlus 的第三方Fork版本,做了一些自用改动"
11
arch=('x86_64')
12
license=('GPL-3.0-or-later')
13
depends=('gtk3' 'mpv' 'libayatana-appindicator' 'webkit2gtk-4.1')
14
makedepends=('clang' 'cmake' 'git' 'ninja' 'fvm' 'patchelf')
15
provides=('pilinara')
16
conflicts=('pilinara-bin' 'pilinara-git')
17
options=('!debug' '!strip')
18
19
source_x86_64=("${_srcname}-${_pkgtag}.tar.gz::${url}/archive/refs/tags/${_pkgtag}.tar.gz")
20
sha256sums_x86_64=('fb2a24ab8af178a21e04af40ec0fc55efff2f8034da11fcb7f9f830e29c0241d')
21
22
prepare() {
23
cd "${_srcname}-${_pkgtag}/"
24
fvm install
25
fvm flutter --disable-analytics
26
fvm flutter --no-version-check pub get
27
}
28
29
build() {
30
cd "${_srcname}-${_pkgtag}/"
31
local _sdk _scripts
32
_sdk="$(readlink -f .fvm/flutter_sdk)"
33
_scripts="${PWD}/lib/scripts"
34
35
# 修补 flutter SDK
36
local _patches=(modal_barrier text_selection mouse_cursor image_anim
37
layout_builder navigation_drawer popup_menu fab
38
null_safety_for_selectable_region selectable_region
39
editable_text text_field scroll_position scrollable
40
scrollable_gesture draggable_scrollable_sheet scaffold
41
text text_painter sliver refresh_indicator)
42
43
printf "正在应用 Flutter 引擎补丁...\n"
44
git -C "${_sdk}" reset --hard HEAD
45
for _patch in "${_patches[@]}"; do
46
git -C "${_sdk}" apply "${_scripts}/${_patch}.patch"
47
done
48
49
printf "补丁应用完成, 开始构建...\n"
50
if fvm flutter build linux --no-pub --release; then
51
git -C "${_sdk}" reset --hard HEAD
52
else
53
_rc=$?
54
printf "构建失败, 正在恢复 Flutter SDK...\n"
55
git -C "${_sdk}" reset --hard HEAD
56
return ${_rc}
57
fi
58
printf "构建完成, Flutter SDK 已恢复.\n"
59
}
60
61
package() {
62
cd "${_srcname}-${_pkgtag}/"
63
local _srcdir=build/linux/x64/release/bundle
64
65
# 建立目录
66
install -d "${pkgdir}/opt/${_pkgname}"
67
install -d "${pkgdir}/usr/bin"
68
# 安装文件
69
install -Dm755 "${_srcdir}/${_pkgname}" "${pkgdir}/opt/${_pkgname}/${_pkgname}"
70
cp -a "${_srcdir}/lib" "${pkgdir}/opt/${_pkgname}/"
71
cp -a "${_srcdir}/data" "${pkgdir}/opt/${_pkgname}/"
72
73
# 设置库文件的 RPATH 为 $ORIGIN
74
find "${pkgdir}/opt/${_pkgname}/lib" -type f -name "*.so*" -exec \
75
patchelf --set-rpath '$ORIGIN' {} \;
76
77
# 安装图标
78
install -Dm644 "assets/images/logo/logo.png" \
79
"${pkgdir}/usr/share/icons/hicolor/512x512/apps/${_pkgname}.png"
80
# 安装 .desktop
81
install -Dm644 "assets/linux/com.example.${_pkgname}.desktop" \
82
"${pkgdir}/usr/share/applications/com.example.${_pkgname}.desktop"
83
# 链接主程序
84
ln -s "/opt/${_pkgname}/${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
85
}
86
Changes since previous scan
--- PKGBUILD @ 2026-08-15 00:26+++ PKGBUILD @ 2026-08-18 00:03@@ -3,9 +3,9 @@ pkgname=pilinara _pkgname=pilinara _srcname=PiliNara-_pkgtag=2.1.0.2-beta4+_pkgtag=2.1.0.2 pkgver=2.1.0.2-pkgrel=2+pkgrel=3 url="https://github.com/Starfallan/PiliNara" pkgdesc="PiliPlus 的第三方Fork版本,做了一些自用改动" arch=('x86_64')@@ -17,7 +17,7 @@ options=('!debug' '!strip') source_x86_64=("${_srcname}-${_pkgtag}.tar.gz::${url}/archive/refs/tags/${_pkgtag}.tar.gz")-sha256sums_x86_64=('b14142475545817f3fdaf86c212fe79419564672063ec788d8f776a49fe8e4b8')+sha256sums_x86_64=('fb2a24ab8af178a21e04af40ec0fc55efff2f8034da11fcb7f9f830e29c0241d') prepare() { cd "${_srcname}-${_pkgtag}/"@@ -38,11 +38,10 @@ null_safety_for_selectable_region selectable_region editable_text text_field scroll_position scrollable scrollable_gesture draggable_scrollable_sheet scaffold- text text_painter)+ text text_painter sliver refresh_indicator) printf "正在应用 Flutter 引擎补丁...\n" git -C "${_sdk}" reset --hard HEAD- git -C "${_sdk}" show beb2ad17004a1b118ff2bd09f55cee23198f6652 --binary | git -C "${_sdk}" apply for _patch in "${_patches[@]}"; do git -C "${_sdk}" apply "${_scripts}/${_patch}.patch" doneScan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-18 00:03:42 | LOW | 2 |
| 2026-08-17 00:18:29 | LOW | 2 |
| 2026-08-16 00:03:42 | LOW | 2 |
| 2026-08-15 07:30:18 | LOW | 2 |
| 2026-08-15 00:26:13 | LOW | 2 |
| 2026-08-14 00:03:41 | LOW | 2 |
| 2026-08-13 00:17:07 | LOW | 2 |
| 2026-08-12 01:22:13 | LOW | 2 |