dtspretty-git

LOW
maintainer dreieck 0 votes scanned 2026-10-28 19:50:31.752373
View on AUR
Why flagged

The package builds from the project's own Git repository, installs Python scripts and data files, and has a SKIP'd checksum which is common for -git packages; the low severity is due to few votes and recent upload, not malicious content.

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 the project's own Git repository, installs Python scripts and data files, and has a SKIP'd checksum which is common for -git packages; the low severity is due to few votes and recent upload, not malicious content.

PKGBUILD

1# Maintainer: dreieck
2
3_pyname=dtspretty
4_pkgname="${_pyname}"
5pkgname="${_pkgname}-git"
6pkgver=r16.20260322.e2d1e91
7pkgrel=1
8pkgdesc="Tool for pretty-printing decompiled device tree/ dts files."
9arch=('any')
10url="https://github.com/stolen/dtspretty"
11license=('MIT')
12depends=(
13 'python>=3'
14 'python-fdt'
15 'python-yaml'
16)
17makedepends=(
18 'git'
19)
20optdepends=()
21#checkdepends=(
22# 'python-pytest'
23#)
24provides=(
25 "${_pkgname}"
26 "python-${_pkgname}"
27)
28conflicts=(
29 "${_pkgname}"
30 "python-${_pkgname}"
31)
32install="${_pkgname}.install"
33source=(
34 "${_pkgname}::git+${url}.git"
35 "${install}"
36)
37sha256sums=(
38 'SKIP'
39 '6436f09850fa919abc24b8af62b9e638f01b79409b3e548102ed6111c3a45faf'
40)
41
42prepare() {
43 cd "${srcdir}/${_pkgname}"
44
45 git log > git.log
46}
47
48pkgver() {
49 cd "${srcdir}/${_pkgname}"
50
51 _rev="$(git rev-list --count HEAD)"
52 _date="$(git log -1 --date=format:"%Y%m%d" --format="%ad")"
53 _hash="$(git rev-parse --short HEAD)"
54
55 if [ -z "${_rev}" ]; then
56 error "Git commit count could not be determined."
57 return 1
58 else
59 printf '%s' "r${_rev}.${_date}.${_hash}"
60 fi
61}
62
63#check() {
64# cd "${srcdir}/${_pkgname}"
65#
66# make -C test test
67#}
68
69package() {
70 cd "${srcdir}/${_pkgname}"
71
72 local _python_sitepackage_dir="$(python -c 'import site; print(site.getsitepackages()[0])')"
73 install -Dvm755 -t "${pkgdir}/${_python_sitepackage_dir}/${_pyname}" dtspretty.py
74 install -Dvm644 -t "${pkgdir}/${_python_sitepackage_dir}/${_pyname}" dereference_phandles.py dts_parser.py generate_restored_dts.py parse_dts_symbols.py
75 install -Dvm644 -t "${pkgdir}/usr/share/${_pyname}/rules" base.yaml qcom.yaml rk.yaml rules.yaml
76
77 install -dvm755 "${pkgdir}/usr/bin"
78 pushd "${pkgdir}/usr/bin" > /dev/null
79 cd "${pkgdir}/usr/bin"
80 ln -sv "${_python_sitepackage_dir}/${_pyname}/dtspretty.py" dtspretty
81 popd > /dev/null
82
83 install -Dvm644 -t "${pkgdir}/usr/share/doc/${_pkgname}" git.log README.md
84 install -Dvm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" LICENSE
85}
86

Scan history

Scanned at (UTC)SeverityRules
2026-10-28 19:50:31 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