sandwine-git

LOW
maintainer dreieck 0 votes scanned 2026-10-20 00:10:31.152894
View on AUR
Why flagged

The source is a git checkout from a GitHub user's repository, which is a normal AUR practice; building from source is standard, and GitHub is a plausible project host despite not being on the whitelist.

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 source is a git checkout from a GitHub user's repository, which is a normal AUR practice; building from source is standard, and GitHub is a plausible project host despite not being on the whitelist.

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:43 "${_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="sandwine"
4_pkgname="${_pyname}"
5pkgname="${_pkgname}-git"
6pkgver=8.0.1+24.r498.20260920.934e7d9
7pkgrel=1
8pkgdesc="A command-line tool to run Windows applications on GNU/Linux that offers more isolation than raw Wine and more convenience than raw bubblewrap. (Uses bubblewrap.)"
9arch=(
10 'any'
11)
12_githost='github.com'
13_gituser='hartwork'
14#url="https://${_githost}/${_gituser}/${_pyname}"
15url="https://pypi.org/project/${_pyname}/"
16license=("GPL-3.0-or-later")
17depends=(
18 'bubblewrap>=0.8.0'
19 'python>=3.9'
20 'python-coloredlogs>=15.0.1'
21 'wine'
22)
23makedepends=(
24 'git'
25 'python-build'
26 'python-installer'
27 'python-setuptools>=61.0.0'
28 'python-wheel'
29)
30optdepends=()
31checkdepends=()
32provides=(
33 "${_pkgname}=${pkgver}"
34 "python-${_pkgname}=${pkgver}"
35 "python-${_pkgname}-git=${pkgver}"
36)
37conflicts=(
38 "${_pkgname}"
39 "python-${_pkgname}"
40)
41
42source=(
43 "${_pkgname}::git+https://${_githost}/${_gituser}/${_pyname}.git"
44)
45sha256sums=(
46 'SKIP'
47)
48
49prepare() {
50 cd "${srcdir}/${_pkgname}"
51 git log > "${srcdir}/git.log"
52}
53
54pkgver() {
55 cd "${srcdir}/${_pkgname}"
56
57 _ver="$(git describe --tags | sed -E -e 's|^[vV]||' -e 's|\-g[0-9a-f]*$||' | tr '-' '+')"
58 _rev="$(git rev-list --count HEAD)"
59 _date="$(git log -1 --date=format:"%Y%m%d" --format="%ad")"
60 _hash="$(git rev-parse --short HEAD)"
61
62 if [ -z "${_ver}" ]; then
63 error "Version could not be determined."
64 return 1
65 else
66 printf '%s' "${_ver}.r${_rev}.${_date}.${_hash}"
67 fi
68}
69
70build() {
71 cd "${srcdir}/${_pkgname}"
72 printf '%s\n' " --> building ..."
73 python -m build --wheel --no-isolation
74}
75
76package() {
77 cd "${srcdir}/${_pkgname}"
78 printf '%s\n' " --> installing ..."
79 python -m installer --destdir="$pkgdir" --compile-bytecode=2 dist/*.whl
80
81 _docfiles=(
82 "${srcdir}/git.log"
83 README.md
84 sandwine_threat_model.png
85 )
86 _docdirs=()
87 _manfiles=()
88 _infofiles=()
89 _licensefiles=(
90 COPYING
91 )
92 printf '%s\n' " --> installing documentation ..."
93 for _docfile in "${_docfiles[@]}"; do
94 install -D -v -m644 "${_docfile}" "${pkgdir}/usr/share/doc/${_pkgname}/$(basename "${_docfile}")"
95 done
96 for _docdir in "${_docdirs[@]}"; do
97 cp -rv "${_docdir}" "${pkgdir}/usr/share/doc/${_pkgname}/$(basename "${_docdir}")"
98 done
99 for _manfile in "${_manfiles[@]}"; do
100 _section="$(basename "${_manfile}" .gz | sed -E -e 's|^.*\.([^.]*)$|\1|')"
101 install -D -v -m644 "docs/build/man/${_manfile}" "${pkgdir}/usr/share/man/man${_section}/$(basename "${_manfile}")"
102 done
103 for _infofile in "${_infofiles[@]}"; do
104 install -D -v -m644 "${_infofile}" "${pkgdir}/usr/share/info/$(basename "${_infofile}")"
105 done
106 printf '%s\n' " --> installing license ..."
107 for _licensefile in "${_licensefiles[@]}"; do
108 install -D -v -m644 "${_licensefile}" "${pkgdir}/usr/share/licenses/${pkgname}/$(basename "${_licensefile}")"
109 ln -svr "${pkgdir}/usr/share/licenses/${pkgname}/$(basename "${_licensefile}")" "${pkgdir}/usr/share/doc/${_pkgname}/$(basename "${_licensefile}")"
110 done
111}
112

Scan history

Scanned at (UTC)SeverityRules
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
2026-10-13 00:23:45 Low 2
2026-10-12 00:18:51 Low 2
2026-10-11 00:26:05 Low 2
2026-10-10 00:11:52 Low 2
2026-10-09 00:05:33 Low 2
2026-10-08 00:28:03 Low 2
2026-10-07 00:21:34 Low 2
2026-10-06 00:13:36 Low 2
2026-10-05 00:08:03 Low 2
2026-10-04 00:18:08 Low 2
2026-10-03 00:23:04 Low 2
2026-10-02 00:00:32 Low 2
2026-10-01 00:02:06 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