meshcore-cli-git
maintainer dreieck
· 0 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The source is a git repository from a plausible project host (github.com) under a project-related user, used to build the package from source; the non-whitelisted host flag is overly cautious as GitHub is a standard and trusted forge.
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 source is a git repository from a plausible project host (github.com) under a project-related user, used to build the package from source; the non-whitelisted host flag is overly cautious as GitHub is a standard and trusted forge.
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:47
"${_pkgname}::git+https://${_githost}/${_gituser}/${_pyname}.git"
PKGBUILD
1 offending line(s) highlighted
1
# Maintainer: dreieck (https://aur.archlinux.org/account/dreieck)
2
3
_pyname="meshcore-cli"
4
_pkgname="${_pyname}"
5
pkgname="${_pkgname}-git"
6
pkgver=1.3.16.r446.20260127.246a84e
7
pkgrel=2
8
pkgdesc="Command line interface to MeshCore node."
9
groups=("meshcore")
10
arch=(
11
'any'
12
)
13
_githost='github.com'
14
# _gituser='fdlamotte'
15
_gituser='meshcore-dev'
16
url="https://${_githost}/${_gituser}/${_pyname}"
17
license=("MIT")
18
depends=(
19
'python>=3.10'
20
'python-bleak'
21
'python-meshcore>=2.2.1'
22
'python-prompt_toolkit>=3.0.50'
23
'python-requests>=2.28.0'
24
'python-pycryptodome>=3.23.0'
25
'python-pyserial'
26
)
27
makedepends=(
28
'git'
29
'python-build'
30
'python-installer'
31
'python-setuptools>=61.0.0'
32
'python-wheel'
33
)
34
optdepends=()
35
checkdepends=()
36
provides=(
37
"${_pkgname}=${pkgver}"
38
# "python-${_pkgname}=${pkgver}"
39
# "python-${_pkgname}-git=${pkgver}"
40
)
41
conflicts=(
42
"${_pkgname}"
43
# "python-${_pkgname}"
44
)
45
46
source=(
47
"${_pkgname}::git+https://${_githost}/${_gituser}/${_pyname}.git"
48
)
49
sha256sums=(
50
'SKIP'
51
)
52
53
prepare() {
54
cd "${srcdir}/${_pkgname}"
55
56
git log > "${srcdir}/git.log"
57
}
58
59
pkgver() {
60
cd "${srcdir}/${_pkgname}"
61
62
_ver="$(grep -E '^[[:space:]]*version[[:space:]]*=' pyproject.toml | head -n1 | awk -F= '{print $2}' | tr -d \'\"[[:space:]])"
63
#_ver="$(git describe --tags | sed -E -e 's|^[vV]||' -e 's|\-g[0-9a-f]*$||' | tr '-' '+')"
64
_rev="$(git rev-list --count HEAD)"
65
_date="$(git log -1 --date=format:"%Y%m%d" --format="%ad")"
66
_hash="$(git rev-parse --short HEAD)"
67
68
if [ -z "${_ver}" ]; then
69
error "Version could not be determined."
70
return 1
71
else
72
printf '%s' "${_ver}.r${_rev}.${_date}.${_hash}"
73
fi
74
}
75
76
build() {
77
cd "${srcdir}/${_pkgname}"
78
printf '%s\n' " --> building ..."
79
python -m build --wheel --no-isolation
80
}
81
82
package() {
83
cd "${srcdir}/${_pkgname}"
84
printf '%s\n' " --> installing ..."
85
python -m installer --destdir="$pkgdir" --compile-bytecode=2 dist/*.whl
86
87
_docfiles=(
88
"${srcdir}/git.log"
89
README.md
90
)
91
_docdirs=()
92
_manfiles=()
93
_infofiles=()
94
_licensefiles=(
95
LICENSE
96
)
97
printf '%s\n' " --> installing documentation ..."
98
for _docfile in "${_docfiles[@]}"; do
99
install -D -v -m644 "${_docfile}" "${pkgdir}/usr/share/doc/${_pkgname}/$(basename "${_docfile}")"
100
done
101
for _docdir in "${_docdirs[@]}"; do
102
cp -rv "${_docdir}" "${pkgdir}/usr/share/doc/${_pkgname}/$(basename "${_docdir}")"
103
done
104
for _manfile in "${_manfiles[@]}"; do
105
_section="$(basename "${_manfile}" .gz | sed -E -e 's|^.*\.([^.]*)$|\1|')"
106
install -D -v -m644 "docs/build/man/${_manfile}" "${pkgdir}/usr/share/man/man${_section}/$(basename "${_manfile}")"
107
done
108
for _infofile in "${_infofiles[@]}"; do
109
install -D -v -m644 "${_infofile}" "${pkgdir}/usr/share/info/$(basename "${_infofile}")"
110
done
111
printf '%s\n' " --> installing license ..."
112
for _licensefile in "${_licensefiles[@]}"; do
113
install -D -v -m644 "${_licensefile[@]}" "${pkgdir}/usr/share/licenses/${pkgname}/$(basename "${_licensefile}")"
114
ln -svr "${pkgdir}/usr/share/licenses/${pkgname}/$(basename "${_licensefile}")" "${pkgdir}/usr/share/doc/${_pkgname}/$(basename "${_licensefile}")"
115
done
116
}
117
118
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 |