coords2img-git

MEDIUM
maintainer dreieck 1 votes scanned 2026-09-23 17:40:40.806207
View on AUR
Why flagged

One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).

Triggered rules

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:46 "${_pkgname}::git+https://${_githost}/${_gituser}/${_pyname}.git"
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.

PKGBUILD

1 offending line(s) highlighted
1# Maintainer: dreieck (https://aur.archlinux.org/account/dreieck)
2
3_pyname="coords2img"
4_pkgname="${_pyname}"
5pkgname="${_pkgname}-git"
6pkgver=0.1.0.r3.20260801.16a2f14
7pkgrel=1
8pkgdesc="Generate static map images - as a PNG file or directly as sixel graphics in your terminal - from a set of coordinates."
9groups=()
10arch=(
11 'any'
12)
13_githost='github.com'
14_gituser='fdlamotte'
15url="https://${_githost}/${_gituser}/${_pyname}"
16license=("MIT")
17depends=(
18 'python>=3.9'
19 'python-pillow>=9.0'
20 'python-requests>=2.25'
21)
22optdepends=(
23 "sh: For example scripts '/usr/share/doc/${_pkgname}/examples/{provider_showcase,quickstart,mesh_network/run}.sh'."
24)
25makedepends=(
26 'git'
27 'python-build'
28 'python-installer'
29 'python-wheel'
30)
31### Do not run 'check()' since it currently (2026-09-22) does not run any test.
32# checkdepends=(
33# 'python-pytest'
34# )
35provides=(
36 "${_pkgname}=${pkgver}"
37 "python-${_pyname}=${pkgver}"
38 "python-${_pyname}-git=${pkgver}"
39)
40conflicts=(
41 "${_pkgname}"
42 "python-${_pyname}"
43)
44
45source=(
46 "${_pkgname}::git+https://${_githost}/${_gituser}/${_pyname}.git"
47)
48sha256sums=(
49 'SKIP'
50)
51
52prepare() {
53 cd "${srcdir}/${_pkgname}"
54
55 git log > "${srcdir}/git.log"
56}
57
58pkgver() {
59 cd "${srcdir}/${_pkgname}"
60
61 _ver="$(grep -E '^[[:space:]]*version[[:space:]]*=' pyproject.toml | head -n1 | awk -F= '{print $2}' | tr -d \'\"[[:space:]])"
62 #_ver="$(git describe --tags | sed -E -e 's|^[vV]||' -e 's|\-g[0-9a-f]*$||' | tr '-' '+')"
63 _rev="$(git rev-list --count HEAD)"
64 _date="$(git log -1 --date=format:"%Y%m%d" --format="%ad")"
65 _hash="$(git rev-parse --short HEAD)"
66
67 if [ -z "${_ver}" ]; then
68 error "Version could not be determined."
69 return 1
70 else
71 printf '%s' "${_ver}.r${_rev}.${_date}.${_hash}"
72 fi
73}
74
75build() {
76 cd "${srcdir}/${_pkgname}"
77
78 printf '%s\n' " --> building ..."
79 python -m build --wheel --no-isolation
80}
81
82### Do not run 'check()' since it currently (2026-09-22) does not run any test.
83# check() {
84# cd "${srcdir}/${_pkgname}"
85#
86# pytest
87# }
88
89package() {
90 cd "${srcdir}/${_pkgname}"
91
92 printf '%s\n' " --> installing ..."
93 python -m installer --destdir="$pkgdir" --compile-bytecode=2 dist/*.whl
94
95 _docfiles=(
96 "${srcdir}/git.log"
97 README.md
98 sample_map.png
99 )
100 _docdirs=(
101 examples
102 )
103 _manfiles=()
104 _infofiles=()
105 _licensefiles=(
106 LICENSE
107 )
108 printf '%s\n' " --> installing documentation ..."
109 for _docfile in "${_docfiles[@]}"; do
110 install -D -v -m644 "${_docfile}" "${pkgdir}/usr/share/doc/${_pkgname}/$(basename "${_docfile}")"
111 done
112 for _docdir in "${_docdirs[@]}"; do
113 cp -rv "${_docdir}" "${pkgdir}/usr/share/doc/${_pkgname}/$(basename "${_docdir}")"
114 done
115 for _manfile in "${_manfiles[@]}"; do
116 _section="$(basename "${_manfile}" .gz | sed -E -e 's|^.*\.([^.]*)$|\1|')"
117 install -D -v -m644 "docs/build/man/${_manfile}" "${pkgdir}/usr/share/man/man${_section}/$(basename "${_manfile}")"
118 done
119 for _infofile in "${_infofiles[@]}"; do
120 install -D -v -m644 "${_infofile}" "${pkgdir}/usr/share/info/$(basename "${_infofile}")"
121 done
122 printf '%s\n' " --> installing license ..."
123 for _licensefile in "${_licensefiles[@]}"; do
124 install -D -v -m644 "${_licensefile[@]}" "${pkgdir}/usr/share/licenses/${pkgname}/$(basename "${_licensefile}")"
125 ln -svr "${pkgdir}/usr/share/licenses/${pkgname}/$(basename "${_licensefile}")" "${pkgdir}/usr/share/doc/${_pkgname}/$(basename "${_licensefile}")"
126 done
127}
128
129

Scan history

Scanned at (UTC)SeverityRules
2026-09-23 17:40:40 Medium 2
2026-09-22 19:43:22 Clean 3
2026-09-22 19:39:10 Medium 2

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion