meshcore-cli-git

LOW
maintainer dreieck 1 votes scanned 2026-11-01 00:21:48.120785
View on AUR
Why flagged

The package builds from a git repository on GitHub under a plausible project namespace, which is a normal AUR practice; the non-whitelisted host is mitigated by the project context and source being openly reviewable.

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-2507) reviewed the full PKGBUILD and judged it LOW (confidence 95%): The package builds from a git repository on GitHub under a plausible project namespace, which is a normal AUR practice; the non-whitelisted host is mitigated by the project context and source being openly reviewable.

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:56 "${_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}"
5pkgname="${_pkgname}-git"
6pkgver=1.6.4.r624.20260919.2ae6100
7pkgrel=2
8pkgdesc="Command line interface to MeshCore node."
9groups=("meshcore")
10arch=(
11 'any'
12)
13_githost='github.com'
14# _gituser='fdlamotte'
15_gituser='meshcore-dev'
16url="https://${_githost}/${_gituser}/${_pyname}"
17license=("MIT")
18depends=(
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-pyserial'
25)
26makedepends=(
27 'git'
28 'python-build'
29 'python-hatchling'
30 'python-installer'
31 'python-setuptools>=61.0.0'
32 'python-wheel'
33)
34optdepends=(
35 "bash: For example scripts '/usr/share/doc/meshcore-cli/scripts/{contact_markers.sh,neighbour_map.sh}'."
36 "coords2img: For example scripts '/usr/share/doc/meshcore-cli/scripts/{contact_markers.sh,neighbour_map.sh}'."
37 "jq: For example scripts '/usr/share/doc/meshcore-cli/scripts/{contact_markers.sh,neighbour_map.sh}'."
38 "sh: For example script '/usr/share/doc/meshcore-cli/scripts/ask_mepo_coords'."
39 "mepo: For example script '/usr/share/doc/meshcore-cli/scripts/ask_mepo_coords'."
40 "geoclue: For example script '/usr/share/doc/meshcore-cli/scripts/getpos.py'."
41 "glib2: For example script '/usr/share/doc/meshcore-cli/scripts/getpos.py'."
42 "python-gobject: For example script '/usr/share/doc/meshcore-cli/scripts/getpos.py'."
43)
44### Do not run 'check()' since it currently (2026-09-22) does not run any test.
45# checkdepends=(
46# 'python-pytest'
47# )
48provides=(
49 "${_pkgname}=${pkgver}"
50)
51conflicts=(
52 "${_pkgname}"
53)
54
55source=(
56 "${_pkgname}::git+https://${_githost}/${_gituser}/${_pyname}.git"
57)
58sha256sums=(
59 'SKIP'
60)
61
62prepare() {
63 cd "${srcdir}/${_pkgname}"
64
65 git log > "${srcdir}/git.log"
66}
67
68pkgver() {
69 cd "${srcdir}/${_pkgname}"
70
71 _ver="$(grep -E '^[[:space:]]*version[[:space:]]*=' pyproject.toml | head -n1 | awk -F= '{print $2}' | tr -d \'\"[[:space:]])"
72 #_ver="$(git describe --tags | sed -E -e 's|^[vV]||' -e 's|\-g[0-9a-f]*$||' | tr '-' '+')"
73 _rev="$(git rev-list --count HEAD)"
74 _date="$(git log -1 --date=format:"%Y%m%d" --format="%ad")"
75 _hash="$(git rev-parse --short HEAD)"
76
77 if [ -z "${_ver}" ]; then
78 error "Version could not be determined."
79 return 1
80 else
81 printf '%s' "${_ver}.r${_rev}.${_date}.${_hash}"
82 fi
83}
84
85build() {
86 cd "${srcdir}/${_pkgname}"
87
88 printf '%s\n' " --> building ..."
89 python -m build --wheel --no-isolation
90}
91
92### Do not run 'check()' since it currently (2026-09-22) does not run any test.
93# check() {
94# cd "${srcdir}/${_pkgname}"
95#
96# pytest
97# }
98
99package() {
100 cd "${srcdir}/${_pkgname}"
101
102 printf '%s\n' " --> installing ..."
103 python -m installer --destdir="$pkgdir" --compile-bytecode=2 dist/*.whl
104
105 _docfiles=(
106 "${srcdir}/git.log"
107 README.md
108 )
109 _docdirs=(
110 scripts
111 )
112 _manfiles=()
113 _infofiles=()
114 _licensefiles=(
115 LICENSE
116 )
117 printf '%s\n' " --> installing documentation ..."
118 for _docfile in "${_docfiles[@]}"; do
119 install -D -v -m644 "${_docfile}" "${pkgdir}/usr/share/doc/${_pkgname}/$(basename "${_docfile}")"
120 done
121 for _docdir in "${_docdirs[@]}"; do
122 cp -rv "${_docdir}" "${pkgdir}/usr/share/doc/${_pkgname}/$(basename "${_docdir}")"
123 done
124 for _manfile in "${_manfiles[@]}"; do
125 _section="$(basename "${_manfile}" .gz | sed -E -e 's|^.*\.([^.]*)$|\1|')"
126 install -D -v -m644 "docs/build/man/${_manfile}" "${pkgdir}/usr/share/man/man${_section}/$(basename "${_manfile}")"
127 done
128 for _infofile in "${_infofiles[@]}"; do
129 install -D -v -m644 "${_infofile}" "${pkgdir}/usr/share/info/$(basename "${_infofile}")"
130 done
131 printf '%s\n' " --> installing license ..."
132 for _licensefile in "${_licensefiles[@]}"; do
133 install -D -v -m644 "${_licensefile[@]}" "${pkgdir}/usr/share/licenses/${pkgname}/$(basename "${_licensefile}")"
134 ln -svr "${pkgdir}/usr/share/licenses/${pkgname}/$(basename "${_licensefile}")" "${pkgdir}/usr/share/doc/${_pkgname}/$(basename "${_licensefile}")"
135 done
136}
137
138

Changes since previous scan

--- PKGBUILD @ 2026-10-21 00:12
+++ PKGBUILD @ 2026-11-01 00:21
@@ -47,12 +47,9 @@
# )
provides=(
"${_pkgname}=${pkgver}"
- # "python-${_pkgname}=${pkgver}"
- # "python-${_pkgname}-git=${pkgver}"
)
conflicts=(
"${_pkgname}"
- # "python-${_pkgname}"
)
source=(
@@ -87,6 +84,7 @@
build() {
cd "${srcdir}/${_pkgname}"
+
printf '%s\n' " --> building ..."
python -m build --wheel --no-isolation
}
@@ -100,6 +98,7 @@
package() {
cd "${srcdir}/${_pkgname}"
+
printf '%s\n' " --> installing ..."
python -m installer --destdir="$pkgdir" --compile-bytecode=2 dist/*.whl

Scan history

Scanned at (UTC)SeverityRules
2026-11-01 00:21:48 Low 2
2026-10-31 00:07:41 Low 2
2026-10-30 00:29:30 Low 2
2026-10-29 00:13:55 Low 2
2026-10-28 00:06:54 Low 2
2026-10-27 00:23:28 Low 2
2026-10-26 00:12:40 Low 2
2026-10-25 00:20:48 Low 2
2026-10-24 00:14:55 Low 2
2026-10-23 00:02:19 Low 2
2026-10-22 00:13:10 Low 2
2026-10-21 19:33:05 Medium 1
2026-10-21 00:12:50 Low 2
2026-10-20 00:10:31 Low 2
2026-10-19 00:03:55 Low 2
2026-10-18 00:06:55 Low 2
2026-10-17 00:21:55 Low 2
2026-10-16 00:12:47 Low 2
2026-10-15 00:28:05 Low 2
2026-10-14 00:06:47 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