dota2-minify-git

LOW
maintainer 9sx77ssl 0 votes scanned 2026-10-17 09:17:40.511065
View on AUR
Why flagged

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

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.

PKGBUILD

1# Maintainer: 9sx77ssl <233811469+9sx77ssl@users.noreply.github.com>
2# Development (VCS) package: builds the latest main branch from source on the user's machine.
3# Upstream: https://github.com/Egezenn/dota2-minify
4
5pkgname=dota2-minify-git
6pkgver=2rc6.r10.g08f12b8
7pkgrel=1
8pkgdesc="Dota 2 Mod Patcher & Toolkit (latest git source build)"
9arch=('x86_64')
10url="https://github.com/Egezenn/dota2-minify"
11options=('!debug')
12license=('GPL-3.0-or-later')
13depends=(
14 'gtk3'
15 'webkit2gtk-4.1'
16 'gobject-introspection'
17 'freetype2'
18 'fontconfig'
19 'hicolor-icon-theme'
20 'wine'
21)
22makedepends=(
23 'git'
24 'nodejs'
25 'npm'
26 'uv'
27 'icoutils'
28)
29provides=('dota2-minify')
30conflicts=('dota2-minify' 'dota2-minify-bin' 'dota2-minify-rc-bin')
31source=("$pkgname::git+https://github.com/Egezenn/dota2-minify.git")
32sha256sums=('SKIP')
33
34pkgver() {
35 cd "$pkgname"
36
37 local _ver
38 _ver="$(git describe --long --tags --abbrev=7 2>/dev/null | sed 's/^Minify-v//; s/\([^-]*-g\)/r\1/; s/-/./g')"
39
40 if [ -n "$_ver" ]; then
41 printf '%s' "$_ver"
42 else
43 printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
44 fi
45}
46
47build() {
48 cd "$pkgname"
49
50 # Keep uv's cache and managed interpreters inside the build dir.
51 export UV_CACHE_DIR="$srcdir/.uv-cache"
52 export UV_PYTHON_INSTALL_DIR="$srcdir/.uv-python"
53 export UV_NO_PROGRESS=1
54
55 # `--extra linux` pulls pygobject/pycairo/pywebview[gtk] so the GUI backend
56 # gets bundled by PyInstaller (plain `uv sync` would ship a GUI-less bundle).
57 uv sync --extra linux
58
59 npm --prefix Minify/ui/web ci
60
61 uv run python scripts/build.py --clean
62
63 # 256px application icon (PyInstaller ignores icons on Linux).
64 icotool -x --width=256 --height=256 \
65 -o "$srcdir/dota2-minify.png" \
66 "Minify/bin/images/favicon.ico"
67}
68
69package() {
70 cd "$pkgname"
71
72 local _root="$pkgdir/usr/lib/$pkgname"
73 install -dm755 "$_root"
74 cp -a --no-preserve=ownership scripts/dist/Minify/. "$_root/"
75
76 find "$_root" -type d -name '__pycache__' -prune -exec rm -rf {} +
77 find "$_root" -type f \( -name '*.pyc' -o -name '*.pyo' \) -delete
78
79 install -Dm644 "$srcdir/dota2-minify.png" \
80 "$pkgdir/usr/share/icons/hicolor/256x256/apps/dota2-minify.png"
81
82 install -dm755 "$pkgdir/usr/bin"
83 cat > "$pkgdir/usr/bin/dota2-minify" <<'LAUNCH'
84#!/bin/sh
85set -eu
86
87# The app chdir()s into its own directory and writes cache/config/logs/mods there,
88# so the read-only system install is copied to a per-user runtime dir once per version.
89system_root=/usr/lib/dota2-minify-git
90runtime_root="${XDG_DATA_HOME:-$HOME/.local/share}/dota2-minify-git"
91runtime_version="__RUNTIME_VERSION__"
92version_file="$runtime_root/.package-version"
93
94mkdir -p "$runtime_root"
95
96if [ ! -x "$runtime_root/Minify" ] || [ ! -f "$version_file" ] || [ "$(cat "$version_file")" != "$runtime_version" ]; then
97 tar -C "$system_root" -cf - . | tar -C "$runtime_root" -xf -
98 printf '%s\n' "$runtime_version" > "$version_file"
99fi
100
101exec "$runtime_root/Minify" "$@"
102LAUNCH
103 sed -i "s|__RUNTIME_VERSION__|${pkgver}-${pkgrel}|" "$pkgdir/usr/bin/dota2-minify"
104 chmod 755 "$pkgdir/usr/bin/dota2-minify"
105
106 install -dm755 "$pkgdir/usr/share/applications"
107 cat > "$pkgdir/usr/share/applications/dota2-minify.desktop" <<'EOF'
108[Desktop Entry]
109Type=Application
110Name=Dota 2 Minify
111Comment=Dota 2 Mod Patcher & Toolkit
112Exec=dota2-minify
113Icon=dota2-minify
114Terminal=false
115Categories=Game;
116Keywords=dota2;mod;patcher;
117EOF
118
119 install -Dm644 "LICENSE" \
120 "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
121}
122

Changes since previous scan

--- PKGBUILD @ 2026-10-17 00:21
+++ PKGBUILD @ 2026-10-17 09:17
@@ -3,7 +3,7 @@
# Upstream: https://github.com/Egezenn/dota2-minify
pkgname=dota2-minify-git
-pkgver=2rc6.r7.gdb769aa
+pkgver=2rc6.r10.g08f12b8
pkgrel=1
pkgdesc="Dota 2 Mod Patcher & Toolkit (latest git source build)"
arch=('x86_64')

Scan history

Scanned at (UTC)SeverityRules
2026-10-17 09:17:40 Low 1
2026-10-17 00:21:55 Clean 2
2026-10-16 09:15:55 Low 1
2026-10-16 00:12:47 Clean 2
2026-10-15 09:11:05 Low 1
2026-10-15 00:28:05 Low 2
2026-10-14 00:06:47 Low 2
2026-10-13 13:16:52 Low 2
2026-10-13 00:23:45 Clean 2
2026-10-12 13:13:52 Low 1
2026-10-12 00:18:51 Clean 2
2026-10-11 23:11:19 Low 1

Report a package

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

0 / 4000
Your suggestion