c5b0848a50
New package packaging/tanin-icons/ generating 5 thin themes Tanin-<accent> that inherit Adwaita and recolour only the folder/place ramp to the muted Fuji accent (HSL shift keeping per-stop lightness; 16px rasterised so the size-exact inherited blue PNG can't win). - style.py: _set_gsettings now also sets icon-theme=Tanin-<accent_key> so folders recolour live with the accent. - desktop.py: hide Tanin-* from the manual icon picker (accent-driven, a manual pick would be overridden on the next accent change). - panel.py: pin-add icon hint Papirus -> Adwaita. - build/finish-tanin-repo.sh: tanin-icons in OWN_SIMPLE; AUR rebuilds add librewolf-bin, arch-update, timeshift-autosnap, xdg-terminal-exec, paru. - camel.toml: icon_theme=Tanin-<accent>, icons=[adwaita], tanin-icons own package + the new rebuilt_aur entries. Deliberately excludes unrelated in-flight work (calendar/gtklock/ online-accounts/overview-backdrop) still uncommitted in the tree. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
54 lines
2.1 KiB
Bash
Executable File
54 lines
2.1 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# Build the [tanin] binary repo from our own packages.
|
|
# ./build-tanin-repo.sh # build what's possible, refresh the DB
|
|
# TANIN_REPO_DIR=/path ./... # output elsewhere (default ~/projects/tanin-repo)
|
|
#
|
|
# Coverage:
|
|
# - own simple packages (file installs / metapackage): built here, no sudo.
|
|
# - taninux: needs python-build/installer/hatchling -> built only if present.
|
|
# - AUR rebuilds (eww, tiramisu, waypaper): NOT in official repos; build them
|
|
# separately (paru/makepkg) and drop the .pkg.tar.zst into the repo dir.
|
|
# (cliphist + cage are in extra -> no rebuild needed.)
|
|
set -uo pipefail
|
|
HERE="$(cd "$(dirname "$0")" && pwd)"
|
|
OUT="${TANIN_REPO_DIR:-$HOME/projects/tanin-repo}"
|
|
DB="$OUT/tanin.db.tar.zst"
|
|
mkdir -p "$OUT"
|
|
|
|
# tanin-icons builds from the installed Adwaita theme -> needs librsvg + python.
|
|
OWN_SIMPLE=(tanin-greet tanin-libadwaita tanin-setup tanin-eww tanin-icons tanin-desktop)
|
|
OWN_BUILD=(taninux)
|
|
AUR_REBUILD=(eww-git tiramisu-git waypaper calamares librewolf-bin
|
|
arch-update timeshift-autosnap xdg-terminal-exec paru)
|
|
|
|
build() {
|
|
local p="$1"
|
|
echo "==> building $p"
|
|
( cd "$HERE/$p" && makepkg -d -f --noconfirm >/dev/null 2>&1 ) \
|
|
&& cp "$HERE/$p/"*.pkg.tar.zst "$OUT/" 2>/dev/null \
|
|
&& echo " ok" || { echo " FAILED ($p)"; return 1; }
|
|
}
|
|
|
|
for p in "${OWN_SIMPLE[@]}"; do build "$p"; done
|
|
|
|
for p in "${OWN_BUILD[@]}"; do
|
|
if pacman -Q python-build python-installer python-hatchling >/dev/null 2>&1; then
|
|
build "$p"
|
|
else
|
|
echo "** skip $p — needs: sudo pacman -S python-build python-installer python-hatchling"
|
|
fi
|
|
done
|
|
|
|
echo "** AUR rebuilds TODO (not in official repos): ${AUR_REBUILD[*]}"
|
|
echo " build each with paru/makepkg and copy the .pkg.tar.zst into $OUT, then re-run."
|
|
|
|
# refresh the DB (unsigned for now -> pacman.conf: SigLevel = Optional TrustAll)
|
|
shopt -s nullglob
|
|
pkgs=("$OUT"/*.pkg.tar.zst)
|
|
if (( ${#pkgs[@]} )); then
|
|
( cd "$OUT" && repo-add -q "$DB" ./*.pkg.tar.zst >/dev/null 2>&1 )
|
|
echo "== [tanin] repo refreshed at $OUT =="
|
|
ls -1 "$OUT" | grep -E '\.pkg\.tar\.zst$|tanin\.db'
|
|
else
|
|
echo "no packages built yet."
|
|
fi |