hyprwrc-git
maintainer codemonkey777
· 0 votes
· scanned 2026-08-03 00:08:14.047287
LOW
View on AUR ↗
Why flagged
The package builds from a public Git repository with no malicious downloads or executed payloads, and the low severity is due to few votes and recent upload, not code risk.
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 a public Git repository with no malicious downloads or executed payloads, and the low severity is due to few votes and recent upload, not code risk.
PKGBUILD
1
# Maintainer: Robert Dannenbring <robert.dannenbring@gmail.com>
2
3
pkgname=hyprwrc-git
4
_pkgname=hyprwrc
5
pkgver=0.1.0.r0.g0000000
6
pkgrel=1
7
pkgdesc="Build Hyprland window rules by clicking the window"
8
arch=('any')
9
url="https://github.com/rdannenbring/HyprWindowRuleCreator"
10
license=('MIT')
11
12
# gtk4/libadwaita come in through python-gobject's own deps, but naming them
13
# is honest: this app will not start without either.
14
depends=(
15
'python'
16
'python-gobject'
17
'gtk4'
18
'libadwaita'
19
'hyprland'
20
'slurp'
21
)
22
optdepends=(
23
'gtksourceview5: syntax highlighting in the generated-rule pane'
24
)
25
makedepends=('git' 'python-build' 'python-installer' 'python-setuptools' 'python-wheel')
26
provides=("$_pkgname")
27
conflicts=("$_pkgname")
28
source=("$_pkgname::git+$url.git")
29
sha256sums=('SKIP')
30
31
pkgver() {
32
cd "$srcdir/$_pkgname"
33
# No tags yet; fall back to 0.1.0 plus commit count so upgrades still order
34
# correctly. Once a tag exists the first branch takes over.
35
#
36
# The describe is tested on its own rather than piped into sed with a `||`
37
# fallback: a pipeline reports the *last* command's status, and sed happily
38
# succeeds on empty input, so the fallback would never run and pkgver would
39
# come out empty.
40
local described
41
if described=$(git describe --long --tags 2>/dev/null) && [[ -n $described ]]; then
42
printf '%s' "$described" | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
43
else
44
printf '0.1.0.r%s.g%s' \
45
"$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
46
fi
47
}
48
49
build() {
50
cd "$srcdir/$_pkgname"
51
python -m build --wheel --no-isolation
52
}
53
54
check() {
55
cd "$srcdir/$_pkgname"
56
# Only the tests that need no compositor. The rest talk to a running
57
# Hyprland over its socket, which a build chroot does not have.
58
local failed=0
59
for t in tests/test_emit.py tests/test_picker.py tests/test_scan.py \
60
tests/test_settings.py tests/test_templates.py tests/test_branding.py; do
61
PYTHONPATH="$PWD" python "$t" || failed=1
62
done
63
return $failed
64
}
65
66
package() {
67
cd "$srcdir/$_pkgname"
68
python -m installer --destdir="$pkgdir" dist/*.whl
69
70
install -Dm644 packaging/hyprwrc.desktop \
71
"$pkgdir/usr/share/applications/$_pkgname.desktop"
72
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
73
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
74
}
75
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 07:20:18 | LOW | 2 |