pattn

LOW
maintainer mhdi 0 votes scanned 2026-08-26 19:30:41.077132
View on AUR
Why flagged

The package builds from source via git and includes non-executable geolocation data files from various GitHub sources; while checksums are skipped for many sources, the files are configuration/data-only and not executed, limiting risk to data tampering rather than code execution.

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 95%): The package builds from source via git and includes non-executable geolocation data files from various GitHub sources; while checksums are skipped for many sources, the files are configuration/data-only and not executed, limiting risk to data tampering rather than code execution.

PKGBUILD

1# Maintainer:
2
3pkgname=pattn
4_name=PattN
5pkgver=7.24.8.P9
6pkgrel=1
7pkgdesc="A GUI client for Windows, Linux and macOS, support Xray and sing-box and others"
8arch=('x86_64')
9url="https://github.com/patterniha/PattN"
10license=('GPL-3.0-only')
11depends=('bash' 'dotnet-runtime-10.0' 'fontconfig' 'glibc' 'libgcc' 'libstdc++' 'xray')
12makedepends=('dotnet-sdk-10.0' 'gendesk' 'git')
13source=("git+${url}#tag=${pkgver//.P/-P}"
14 "git+https://github.com/2dust/GlobalHotKeys.git"
15 "https://github.com/MetaCubeX/meta-rules-dat/releases/latest/download/geoip.metadb"
16 "https://github.com/Loyalsoldier/geoip/releases/latest/download/Country.mmdb"
17 "https://github.com/Loyalsoldier/geoip/releases/latest/download/geoip-only-cn-private.dat"
18 "https://github.com/Chocolate4U/Iran-v2ray-rules/releases/latest/download/geoip.dat"
19 "https://github.com/Chocolate4U/Iran-v2ray-rules/releases/latest/download/geosite.dat"
20 "https://github.com/2dust/sing-box-rules/raw/rule-set-geoip/geoip-cn.srs"
21 "https://github.com/2dust/sing-box-rules/raw/rule-set-geoip/geoip-facebook.srs"
22 "https://github.com/2dust/sing-box-rules/raw/rule-set-geoip/geoip-fastly.srs"
23 "https://github.com/2dust/sing-box-rules/raw/rule-set-geoip/geoip-google.srs"
24 "https://github.com/2dust/sing-box-rules/raw/rule-set-geoip/geoip-netflix.srs"
25 "https://github.com/2dust/sing-box-rules/raw/rule-set-geoip/geoip-private.srs"
26 "https://github.com/2dust/sing-box-rules/raw/rule-set-geoip/geoip-telegram.srs"
27 "https://github.com/2dust/sing-box-rules/raw/rule-set-geoip/geoip-twitter.srs"
28 "https://github.com/2dust/sing-box-rules/raw/rule-set-geosite/geosite-category-ads-all.srs"
29 "https://github.com/2dust/sing-box-rules/raw/rule-set-geosite/geosite-cn.srs"
30 "https://github.com/2dust/sing-box-rules/raw/rule-set-geosite/geosite-geolocation-cn.srs"
31 "https://github.com/2dust/sing-box-rules/raw/rule-set-geosite/geosite-gfw.srs"
32 "https://github.com/2dust/sing-box-rules/raw/rule-set-geosite/geosite-google.srs"
33 "https://github.com/2dust/sing-box-rules/raw/rule-set-geosite/geosite-greatfire.srs"
34 "https://github.com/2dust/sing-box-rules/raw/rule-set-geosite/geosite-private.srs"
35 "https://github.com/Chocolate4U/Iran-sing-box-rules/raw/rule-set/geoip-ir.srs"
36 "https://github.com/Chocolate4U/Iran-sing-box-rules/raw/rule-set/geosite-ir.srs"
37 "${pkgname}.sh")
38sha256sums=('462a60e1467341908801483a6544618f3d7ce77158e18d26ea1b9006a3495ba5'
39 'SKIP'
40 'SKIP'
41 'SKIP'
42 'SKIP'
43 'SKIP'
44 'SKIP'
45 'SKIP'
46 'SKIP'
47 'SKIP'
48 'SKIP'
49 'SKIP'
50 'SKIP'
51 'SKIP'
52 'SKIP'
53 'SKIP'
54 'SKIP'
55 'SKIP'
56 'SKIP'
57 'SKIP'
58 'SKIP'
59 'SKIP'
60 'SKIP'
61 'SKIP'
62 'cb4f85e20ee206214cd93309f2574ae26ef2748a4b4ff54f737238d639deba5c')
63
64prepare() {
65 cd "${_name}"
66 git submodule init
67 git config submodule.v2rayN/GlobalHotKeys.url "${srcdir}/GlobalHotKeys"
68 git -c protocol.file.allow=always submodule update
69
70 cd "v2rayN"
71 gendesk -f -n \
72 --pkgname "${pkgname}" \
73 --pkgdesc "${pkgdesc}" \
74 --name "${_name}" \
75 --icon "${_name}" \
76 --categories 'Network'
77}
78
79build() {
80 cd "${_name}/v2rayN"
81 local publish_args=(
82 --configuration Release
83 --output build
84 --runtime linux-x64
85 -p:PublishSingleFile=false
86 -p:SelfContained=false
87 -p:Version=${pkgver//.P/-P}
88 )
89 dotnet publish "${publish_args[@]}" v2rayN.Desktop/v2rayN.Desktop.csproj
90}
91
92package() {
93 cd "${_name}/v2rayN"
94 install -d "${pkgdir}/usr/lib/${_name}/bin/srss"
95 cp -r build/* "${pkgdir}/usr/lib/${_name}"
96 install -Dm755 "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
97 install -Dm644 "${pkgname}.desktop" -t "${pkgdir}/usr/share/applications"
98 install -Dm644 v2rayN.Desktop/v2rayN.png "${pkgdir}/usr/share/pixmaps/${_name}.png"
99
100 # Create symlink
101 install -d "${pkgdir}/usr/lib/${_name}/bin/xray"
102 ln -s /usr/bin/xray -t "${pkgdir}/usr/lib/${_name}/bin/xray"
103
104 # Install geofiles
105 cp "${srcdir}/"*.{dat,metadb,mmdb} "${pkgdir}/usr/lib/${_name}/bin"
106 cp "${srcdir}/"*.srs "${pkgdir}/usr/lib/${_name}/bin/srss"
107}
108

Scan history

Scanned at (UTC)SeverityRules
2026-08-26 19:30:41 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