mactahoe-gtk-theme-fixed-git

LOW
maintainer gaougalos 0 votes scanned 2026-10-30 00:29:30.650963
View on AUR
Why flagged

The package builds a GTK theme from a trusted project's GitHub repository and applies fixes from a maintainer's repository; the only concerns are unverifiable sources due to SKIP'd checksums and low votes, but it installs only theme data, not executable code, so the worst-case impact is limited to visual changes or theme corruption.

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 a GTK theme from a trusted project's GitHub repository and applies fixes from a maintainer's repository; the only concerns are unverifiable sources due to SKIP'd checksums and low votes, but it installs only theme data, not executable code, so the worst-case impact is limited to visual changes or theme corruption.

PKGBUILD

1# Maintainer: gaou-piou <i dot am dot piou at gmail dot com>
2# Contributor: Mark Wagie <mark dot wagie at proton dot me>
3pkgname=mactahoe-gtk-theme-fixed-git
4_name=mactahoe-gtk-theme
5pkgver=2026.09.10.r7.g1e45e19.f7.8d3878b
6pkgrel=1
7pkgdesc='MacTahoe GTK theme, with GTK 3/4 geometry fixes (window buttons, headerbars, Nautilus, Electron/Chromium titlebars)'
8arch=('any')
9url='https://github.com/vinceliuice/MacTahoe-gtk-theme'
10license=('MIT')
11depends=('gnome-themes-extra' 'gtk3')
12makedepends=('git' 'gnome-shell' 'sassc')
13optdepends=('gtk-engine-murrine: GTK 2 support')
14provides=("${_name}")
15conflicts=("${_name}" "${_name}-git")
16options=('!strip' '!debug')
17install="${_name}-fixed.install"
18source=("${_name}::git+${url}.git")
19sha256sums=('SKIP')
20# The fixes follow the main branch of github.com/gaou-piou/gtk-theme-fixes, so a change there needs
21# no package update; pkgver() records which commit a build took. local_build=true: they come from a
22# gtk-theme-fixes/ working tree in a parent directory of this PKGBUILD instead (uncommitted changes
23# included).
24if [[ ${local_build:-} != true ]]; then
25 source+=('gtk-theme-fixes::git+https://github.com/gaou-piou/gtk-theme-fixes.git')
26 sha256sums+=('SKIP')
27fi
28
29_local_fixes() {
30 local d=$startdir
31 until [[ -d $d/gtk-theme-fixes/generic || $d == / ]]; do d=$(dirname "$d"); done
32 if [[ ! -d $d/gtk-theme-fixes/generic ]]; then
33 error "local_build: no gtk-theme-fixes/ in a parent directory of $startdir"
34 return 1
35 fi
36 printf '%s\n' "$d/gtk-theme-fixes"
37}
38
39# <theme version>.f<count>.<commit>: the commits of gtk-theme-fixes that change the files this
40# package uses (generic/, mactahoe/), so other themes' fixes leave the version alone
41pkgver() {
42 local fixes="$srcdir/gtk-theme-fixes"
43 if [[ ${local_build:-} == true ]]; then
44 fixes=$(_local_fixes) || return 1
45 fi
46 printf '%s.f%s.%s' \
47 "$(git -C "$srcdir/${_name}" describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g')" \
48 "$(git -C "$fixes" rev-list --count HEAD -- generic mactahoe)" \
49 "$(git -C "$fixes" log -1 --format=%h --abbrev=7 HEAD -- generic mactahoe)"
50}
51
52prepare() {
53 local fixes="$srcdir/gtk-theme-fixes"
54 if [[ ${local_build:-} == true ]]; then
55 local d
56 d=$(_local_fixes) || return 1
57 warning "local_build: fixes from $d (uncommitted changes included)"
58 rm -rf "$fixes" && mkdir "$fixes"
59 cp -r "$d/generic" "$d/mactahoe" "$fixes/"
60 fi
61 cd "${_name}"
62
63 local sass=src/sass
64 cp "${fixes}/generic/fixes-3.0.scss" "${sass}/_fixes-3.0.scss"
65 cp "${fixes}/generic/fixes-4.0.scss" "${sass}/_fixes-4.0.scss"
66 cp "${fixes}/mactahoe/fixes-variables.scss" "${sass}/_fixes-variables.scss"
67 cp "${fixes}/mactahoe/local-fixes-4.0.scss" "${sass}/_local-fixes-4.0.scss"
68
69 # install.sh also copies its gnome-theme-switcher app to /usr/bin as root (fakeroot counts),
70 # outside $pkgdir: leave it out
71 sed -i '/^ install_app$/d' install.sh
72
73 # Firefox fixes (tweaks.sh -f copies customChrome.css into the profile)
74 cat "${fixes}/mactahoe/local-fixes-firefox.css" >> other/firefox/customChrome.css
75
76 # tweaks.sh -f has no alt option: use the alt titlebuttons to match install.sh -a alt
77 sed -i -E 's|@import "parts/titlebutton-(light\|dark)\.css";|@import "parts/titlebutton-\1-alt.css";|' \
78 other/firefox/MacTahoe/theme*.css
79
80 # what tweaks.sh -e was used for: rounded maximized window and system icons
81 sed -i -E 's|^/\*(@import "MacTahoe/(rounded-window-maximized\|system-icons)\.css";)|\1|' \
82 other/firefox/userChrome*.css
83
84 # the fixes are imported near the end of each GTK entry file, after the theme's own partials,
85 # so they see its variables
86 local f
87 for f in src/main/gtk-3.0/*.scss; do
88 sed -i "$(awk 'END { print NR - 6 }' "$f") a @import '../../sass/fixes-variables';" "$f"
89 sed -i "$(awk 'END { print NR - 2 }' "$f") a @import '../../sass/fixes-3.0';" "$f"
90 done
91 for f in src/main/gtk-4.0/*.scss; do
92 sed -i "$(awk 'END { print NR - 6 }' "$f") a @import '../../sass/fixes-variables';" "$f"
93 sed -i "$(awk 'END { print NR - 1 }' "$f") a @import '../../sass/fixes-4.0';" "$f"
94 sed -i "$(awk 'END { print NR - 1 }' "$f") a @import '../../sass/local-fixes-4.0';" "$f"
95 done
96}
97
98package() {
99 cd "${_name}"
100 install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
101
102 install -d "${pkgdir}/usr/share/themes"
103 # solid, every accent, alt (macOS-style) window buttons, GNOME Shell theme with a smaller font,
104 # rounded maximized windows
105 # TERM: install.sh draws a spinner with setterm/tput, which fail without one (clean chroots)
106 TERM=${TERM:-dumb} ./install.sh -o solid -t all -a alt --shell -smallerfont --roundedmaxwindow \
107 -d "${pkgdir}/usr/share/themes"
108
109 # Firefox theme: tweaks.sh -f needs only these; each user installs it with mactahoe-firefox-theme
110 local share="${pkgdir}/usr/share/${_name}"
111 install -d "${share}/other"
112 cp -r tweaks.sh libs "${share}"
113 cp -r other/firefox "${share}/other"
114 # -f never needs the sass options, and src/ is not shipped: drop the unconditional call
115 sed -i '/^ customize_theme$/d' "${share}/tweaks.sh"
116 install -Dm755 /dev/stdin "${pkgdir}/usr/bin/mactahoe-firefox-theme" <<EOF
117#!/bin/sh
118exec /usr/share/${_name}/tweaks.sh -f "\$@"
119EOF
120}
121

Scan history

Scanned at (UTC)SeverityRules
2026-10-30 00:29:30 Low 2
2026-10-29 21:53:30 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